Groovy expression for Get Status of Parent for the subtask

I need a sub-task to transition to a certain state on creation IF the parent issue is not in the Status of Open. I'm using the "Transition issue" post function but need to wrap it round a conditional Groovy expression that gets the Status of the Parent and returns True if it is not Open.

1 answer

On the initial creation of both Parent and Sub Tasks they are set to the status of "OPEN". When the Parent is worked on someone moves it into "IN PROGRESS" on the sprint board and the post function on the Parent to transition all the Sub Tasks to "IN PROGRESS" works fine.

However, If another Sub Task is created I want the newly created Sub Task to transition to "IN PROGRESS" and not remain as "OPEN".

I have tried the suggested conditional transition post function != "OPEN" on the Sub Task to transition it to the "IN PROGRESS" step but that does not work and the new Sub Task is created as "OPEN".

The Sub Task must either transition to "IN PROGRESS" on creation if the Parent is not "OPEN" or must inherit the status of the Parent. It doesn't matter which so any working solution would be welcome.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,337 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot