Automations for parent issue when part of sub-tasks are in done

Casper June 14, 2023

I have issue types:

- Story           ( Level 0 )

- Sub-Task    ( Level -1 )
- Sub-Bug     ( Level -1 )
- Sub-QA      ( Level -1 )

What do I need?

I need automation when all sub-tasks or sub-bugs in the status 'Done' execute auto-comment in the parent Story 'Ready for Deployment'

I did everything and it automation works, but works if:

- All sub-tasks in done ( also sub-qa )
But I need only Sub-Tasks or Sub-Bugs.

- Only one Sub-task or Sub-bug went to the status 'Done'
But I need all child Sub-tasks or Sub-Bugs to be in 'Done'

Here is how that automation looks:
Screenshot 2023-06-14 at 13.44.20.png

 

So, can you help me guys to do auto, when all childs of Story, as Sub-Tasks or Sub-Bugs are in status 'Done' ( including that the story also has another child 'Sub-QA' which is in status 'Pause' ), execute auto comment to a parent issue?

Sorry if it's sound or looks too heavy I tried to explain as easily as I can :)

1 answer

1 accepted

0 votes
Answer accepted
Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 14, 2023

Hi @Casper Try to add "Related Issue Condition" after Parent branch and before Action. 

Screenshot 2023-06-14 170627.png

Casper June 14, 2023

Hi, @Vikrant Yadav I tried but it doesn't work Jira alert "DP-19 doesn't pass the related if block" DP-19 is Story so as I understand my Story has 3 issue types of the sub, and the system find the sub-task in done, but other sub-qa in pause, so that why related if block fail cos there not only sub-tasks.

Casper June 14, 2023

So the goal now is to somehow filter if ALL sub-tasks are done not only 1 of them. 
But remember that in the story 3 types of sub:

- Sub Task ( I have 2 sub-tasks ) 
- Sub Bug ( 1 sub-bug )
- Sub QA ( 1 sub-qa )

Screenshot 2023-06-14 at 16.49.34.png

 

Thanks!
Casper :)

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 14, 2023

@Casper Here is the complete working rule. Screen Recording Link ;- https://we.tl/t-E4quu4fm6t

Kindly check. Please update subtask name in JQL as per your project.

Like Casper likes this
Casper June 14, 2023

Uffff Thank you so much, cos I spent 4 hours on that, I will try your solution now.

Like Vikrant Yadav likes this
Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 14, 2023

@Casper  Give it a try, it should work. Make changes in rule as per your subtask name.

Like Casper likes this
Casper June 14, 2023

@Vikrant Yadav It works!
Thanks again, friend

Like Vikrant Yadav likes this
Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 14, 2023

@Casper Glad to hear solution works for you 🥳

kindly accept the solution.

Like Casper likes this
Jess Williamson October 31, 2023

Hi there, are you able to reshare the solution, the link has expired :)

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 31, 2023
Danny
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 17, 2024

@Vikrant Yadav could you share it once more, or provide screenshots in this thread for future reference? Thank you!

Like Vikrant Yadav likes this
Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 21, 2024

Hi @DR Sorry for late response, Here is the rule screenshot : 

Screenshot 2024-02-21 145956.png

Like Danny likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events