On Sub Task Creation, set Sub Task's status to same value as Parent's status


I would like to have it so that when a user create a "sub task", the sub task gets setup with the same "status" as the parent task. From my understanding, I should be able to accomplish this by putting a Post Function on the Create Issue transition on my workflow, but this has not been working for me. Can someone help.

To simplify my testing, I've setup a simple workflow where all the status on the workflow have the "Allow all statuses to transition to this one" enabled.

On the default "Create Issue" transition in the workflow, I added a Post Function step named "Set Field Value from Parent". With this added, my Post Function list on the "Create Issue" transition looks like this:

1. The value(s) of field Status will be set from the issue's parent (replacing existing values).
2. Creates the issue originally.
3. Fire a Issue Created event that can be processed by the listeners.

I Published the workflow and tested it.

I tested it by creating an new Issue, then moving that issue to the In Progress status from the Open status. Then within that first issue, I created a Sub Task issue. After creating it, I expected the Sub-Task issue to be automatically transitioned to the "In Progress" status from the Open status, but it didn't. The Sub-Task status still remained in the "Open".

Can someone please tell me what I am doing wrong here. Is this is a known bug with Jira. If so, is there any other way of configuring Jira to accomplish my objective.

I greatly appreciate the help.

1 answer

1 accepted

0 votes
Accepted answer
Joe Wai Tye Atlassian Team Feb 21, 2014

Hey there, I did some searching around, and found another Answers thread that could probably give you a heads up on how to achieve this here.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,734 views 17 21
Read article

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