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,369,434
Community Members
 
Community Events
168
Community Groups

Automation rule - conditions

Hello, 

Guys, I created a simple rule that we the user create a subtask it takes the status of the parent. So when the parent is in the "In progress" or "In testing" the newly created subtask should take the same status as its parent. 

I did it this way:

1. Trigger - issue created 

2. Issue type equals - Subtask

3. Then: Transition the issue to - Copy from Parent

Everything works great. The only issue is that when the parent is in the To do status I'm getting a failed automation rules notification. I tried to create an additional condition when the parent is in the "To Do" do nothing but... I cannot figure it out. 

Can you suggest how to do it?

Thank you, 

2 answers

1 accepted

1 vote
Answer accepted
bmccoy Atlassian Team Aug 22, 2022

Hi!

Not sure if you have already tried this, but we do have the 'related issues condition'.  It allows you to check things against the parent ticket.Automation - Code Barrel JIRA 2022-08-23 11-04-05.png

Cheers,
Brydie

0 votes
Stefan Salzl Community Leader Aug 21, 2022

Hi @Alex Shirokov ,

could you check the workflow scheme? Regarding the description my first guess would be that parent issues are using a different workflow (thus: status) than subtask. Therefore it might be that subtask could not be transitioned to that specific workflow status.

In case they are using the same WF please add a screenshot of the error message from the audit log as well as a screenshot of your WF.

Best
Stefan

Hi @Stefan Salzl 

100% we are using the same workflow for both issue types. 

There are some conditions applied to the workflow to restrict users to go back on the issue lifecycle. Only managers could move the issues left. 

Thank you!

Please find the screenshot from the audit log:

Screenshot_1.png

@Stefan Salzl 

Stephan, 

I did screenshots of the workflow part:

Please note the in first and the second transition from "to do" to "in Progress" every project member can transition issues.

 

worflow.pngScreenshot_2.png

Stefan Salzl Community Leader Aug 22, 2022

Hi @Alex Shirokov 

Could you please share your screenshots in a clean manner? (I guess issue names and/or status names are not sensitive data). This would make anylaze a lot easier for the community.

Furthermore could you please also add a screenshot of your whole automation rule and also the action that processes the transition?

Best
Stefam

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events