Hi all,
Situation: We want to make the scheduled start and end time of a normal change read only after the change has been approved for deployment so that users can't change the start or end time of their change anymore after it has been approved for deployment.
I tested several solutions to make it as compact as possible, so 1 business rule for scheduled start and 1 business rule for scheduled end:
I tried:
${current_update.PhaseId.IsChanged && current_update.PhaseId.NewValue == 'Execute'}
${current_update.PhaseId.IsChanged && entity.PhaseId == 'Execute'}
And later on I would add the other phases to, but just this to test with. So in the end it would be something like:
${current_update.PhaseId.IsChanged && (entity.PhaseId == 'Execute' || entity.PhaseId == 'CMDBUpdate' || entity.PhaseId == 'Review' || entity.PhaseId == 'Close' || entity.PhaseId == 'Abandon')}
But the rules are not working, the fields stay available after reaching 1 of the phases. Is my way of thinking wrong?
Now I can work around this and just create a rendering forms rule for each Phase, but then I have more rules:
Any suggestions?