I am trying to prevent users from cerating subtask on closed poarent issues..I am using ScriptRunner workflow function and onn validator i am using:
I tried this, and it just disables cretion of subtaks regardless of status
issue.parentObject.statusObject.name == "CLOSED"
If i use other option - it just lets me create subtasks regardless of status
issue.parentObject.statusObject.name != "CLOSED"
sorry, but i get this error
Mind that the word "zaključeno" is my word for closed
Try
"CLOSED".equals(issue.parentObject.status().getName())
Also, are your status really that shouty? The match from ==/equals is an exact match.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.