Sub-tasks should be created in the same status that the parent is

Asta Adamonytė November 28, 2019

Hey,

How to set up with Script Runner (maybe via Listener?) or in another way: if sub-task is created it gets same status that the parent is.

1 answer

0 votes
Leonard Chew
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.
November 29, 2019

I'd create a Scriptrunner postfunction on the initial transition of the sub-task (e.g. create-transition).

The script would do this:

If type==subtask then get status of parent issue and transition the issue (sub-task) to the same status. That should be possible, but I have not yet written a script that transitions an issue.

You'll have to be careful however. The sub-task needs to have all the same status as the parents, so best to make sure they use the same workflow.

Asta Adamonytė December 1, 2019

Thanks! Maybe you could share how exactly your script looks like? 

Suggest an answer

Log in or Sign up to answer