Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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