How to prevent creating sub-tasks on closed parrent issue using script runner validation script

Lotus Support July 20, 2017

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"

pic1.jpg

2 answers

0 votes
Lotus Support July 21, 2017

sorry, but i get this error  

Mind that the word "zaključeno" is my word for closed

pic.jpg

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 20, 2017

Try

"CLOSED".equals(issue.parentObject.status().getName())

Also, are your status really that shouty?  The match from ==/equals is an exact match.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events