Forums

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

Do not allow to create new tickets if parent issue is closed

Rama Krishna March 1, 2023

Hello

How to block creation of child tickets under parent(Epic) issue if the issue is already closed.

we have tried using WF properties on every status but when testing we found out that we can still tag the parent issue Epic from Epic link.

Is there any way we can achieve this using scripted validator on the child's create transition? If yes please help me with the script.

We are aware that this can be also doable via JMWE but i'm inclined more towards ScriptRunner solution

Thanks

RK

1 answer

1 accepted

1 vote
Answer accepted
Somnath Patil
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.
March 1, 2023

Hi Rama,

 

Please add the  ScriptRunner Script Validator on  Create transition of All Child Issue Workflow  and add the  below expression in ScriptRunner  : Epic.png

 

issue.epic.status.name != "Done" 

 

and also enter validation failed message like "Cannot Create Child Issue when parent Issue is Done".

Find the attachment for more.

 

Thanks

Suggest an answer

Log in or Sign up to answer