Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,578
Community Members
 
Community Events
165
Community Groups

How to sync the status of newly created issue with the parent?

Edited

Hello experts, 

I have a parent (Epic) and let's say it is in the status "In progress". When I'm going to the Epic and creating the child issue "Task" it takes the status "To Do". Can I somehow transition an issue to the same status as its Parent? 

I tried an automation rule:

Trigger: Created issue

Condition: issue type: Task

Branch: Epic parent

Action: transition the issue (copy from Parent).


and nothing works! 

Or does it relate to a workflow part?

Thank you! 

 

2 answers

You can do it by using Scriptrunner plugin. But you will need some groovy script for that.

On Create transaction you can use move in posttfunction. And also there you will write your logic (something like - If parent status = In progress - make a transaction)

Thank you Ilya, 

I wish my client would have the ScriptRunner. 

While reading your email I was thinking maybe I can do it via "if" condition in the rule? 

0 votes
John M Funk Community Leader Jun 02, 2022

Hi Alex,

Take a look at the first example in the common use cases for Automation for Jira.

https://www.atlassian.com/software/jira/guides/expand-jira/automation-use-cases

Thank you, John, 

I'm afraid it is not my case. I have a rule that moves all tasks (issue type) with the parent. I need to make sure that the new issue I created will land up in the same status as the parent. 
Thank you, again

John M Funk Community Leader Jun 02, 2022

What status is the Epic transitioning to?

It can be any of three: To Do, In progress, Delayed. When it is in To-Do then it is fine since the new issue will land there but when it is in In progress or in Delay then ... I need to solve it. 

For example: the Epic (in my case it serves as a "project") is in Delayed. The user will create a Task (let's call it Risk related) from the Epic as a child. Therefore this newly created issue should land up in the same status as an Epic (parent). 

Thank you

John M Funk Community Leader Jun 03, 2022

The problem with Automation doing this is that currently there is not a way to trigger a rule based on the Epic Link field being updated. So it doesn't know that a link was made. 

So, you might experiment with something like this:

screenshot.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,225 views 35 44
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you