Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,555,395
Community Members
 
Community Events
184
Community Groups

Change Parent Issue status when 2 or more sub-tasks are in a status

My requirement is, I would like to automate parent issue transition when 2 or more sub-tasks of that parent issue are in a certain status.

 

Example: If parent issue is in open status, and when two or more of its sub-tasks are changed to "status A", then parent issue should be moved to in-progress. 

For this, I have used advanced compare condition in automation for jira.When this condition is met, For parent, status transition to happen.
advanced compare condition.PNG
But when I tested this automation rule, even when there is one sub-task with statusA, the automatic transition is happening. It is considering the condition "greater than".

I would like to know if it is possible using automation for jira plugin, if so, what should I make changes in my approach.

Thanks in advance.

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 28, 2020

Hi @Sarath 

It seems your advanced compare is only testing the one sub-task and not the others.

Have you considered using JQL and Lookup Issues to find the sub-tasks which are in the status you care about, and then check the size to see if there is more than one: {{lookupIssues.size}}

If more than one, then update the parent.

Best regards,

Bill

Thank you, we're using automation for jira in server version. Seems like lookup issues action is not available in this moment.

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 28, 2020

Thanks for that information, Sarath.

That is correct that Lookup Issues is only for cloud version.  For server version, JQL result sets are representented by the {{issues}} smart value (note this is plural).  So then {{issues.size}} could work for you.

https://confluence.atlassian.com/automation/smart-values-993924860.html

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events