Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

All tasks done = related story done

Ilidio Faria October 21, 2020

Hello People,

 

Anyone here can help m building an automation, when the user story is with status done, when all the related tasks are all done?

Regards,

Ilídio

2 answers

1 accepted

0 votes
Answer accepted
Jack Brickey
Community Champion
October 21, 2020

If you are asking to close the parent when all children are done there are a number of posts that discuss the solution already. Here is one where Stephen does a good job explaining - Will-moving-all-subtasks-of-a-story-to-Done 

Ilidio Faria October 21, 2020

Jack

Sub-task closing the story is a native automation of Jira. I'm talking about close the story when the related tasks are done.

Like Mónica González Jenal likes this
Jack Brickey
Community Champion
October 22, 2020

Gotcha, the way to do this is via automation as Sam has conveyed.

1 vote
Sam Harding
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 21, 2020

Hi @Ilidio Faria 

A way to do this would be to use lookup issues, to see if there are any issues related to the user story which have their status something other than "done". If there are none, then you can transition the story to "done".

The rule configuration would be:
- When issue transitions to done
- For any issue related to the trigger issue
- Lookup issues related to this related issue which have status other than done
- If there are none
- Transition the related issue to Done

Screen Shot 2020-10-22 at 11.01.32 am.png

Here I am using the "relates to" link. This could be changed to any link type you want, or multiple link types.

Hope that helps!

Ilidio Faria October 22, 2020

Can you paste here the JQL condition and the checks if?

Ilidio Faria October 23, 2020

@Sam Harding  can you please provide the JQL condition and the checks if?

Sam Harding
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 25, 2020

@Ilidio Faria the lookup issues JQL search string is

issue in linkedIssues({{issue.key}}, "relates to") and status != "done"

Then the advanced compare condition is

{{lookupIssues.size}}

equals

0

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events