Hi all,
I tried to limit field edtiting for a particular field except for two or more workflow steps with different projectroles or groups. I tried this with ScriptRunner Plugin. But it seems that complex conditions are not possible with this plugin - or maybe i missed something. To show the goal, here is an example in pseudocode:
field = getFieldByName("CodeTags")
if (currentUser.isInProjectRole("Developer")
and issue.isInWorkflowStep("in Development")
or currentUser.isInGroup("ConfigurationManager")
and issue.isInWorkflowStep("create Build")) {
field.setEditingDisabled(false)
} else {
field.setEditingDisabled(true)
}Hint: It is not an option to disable editing in the most of our workflow steps and use only transitions for editing.
Has anyone an idea or a hint to an other plugin which helps to reach the goal?
Thank you.
Mark