Forums

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

How to block parent issue when using ScriptRunner Post-Function to create a subtask?

G P October 16, 2019

Working in an active workflow and adding a post function to a transition, I have been successful in auto creating sub-tasks when conditions are met. However, I cannot see how to make the sub-tasks block the parent issue.

1 answer

1 accepted

0 votes
Answer accepted
Olga Videc
Community Champion
October 16, 2019

Hello @G P

If I understand correctly, you need a sub-task to prevent the issue to be transitioned before the sub-task is closed?

If so check this, this applies to issue can't be resolved before all sub-tasks are closed but it can be applied on all transitions

https://confluence.atlassian.com/jirakb/preventing-issues-from-being-closed-while-the-sub-tasks-are-still-open-724928276.html

If that's not the case, can you specify what exactly should sub-task block?

BR, Olga

G P October 16, 2019

 That was it!  I was able to accomplish all sub-tasks from blocking the parent issue from moving to a selected transition unless all sub-tasks were closed.

 

Thank you, great help.

 

GP

Suggest an answer

Log in or Sign up to answer