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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.