How to automate close all tasks and sub-tasks after released - Jira Automation

Jaroslaw Mutwil August 13, 2019

Hello,

I would like to create a rule to close all tasks and sub-tasks fixed in just released version (on condition they are in specific status).

Following the page https://docs.automationforjira.com/rule-playground/#/rule/112178 I am able to cover the first part of the rule (close all tasks), but I am not able to find a way for closing all sub-tasks (playing wiht this already for some time).

Any hints?

 

rule.PNG

 

Thanks!

2 answers

1 accepted

0 votes
Answer accepted
Deleted user August 18, 2019

Hey there Jaroslaw,

Do the sub-tasks have the fixfor version set? If so you can replace the "Sub-tasks" related branch with a JQL query like:

 

issuetype IN subTaskIssueTypes() AND fixVersion = latestReleasedVersion() AND status = "Ready for Production"

 and then transition the issues there into the correct state

Cheers,

Mark C

0 votes
Jaroslaw Mutwil August 18, 2019

Thanks for the answer. When "fix version" is set the rule works - thank you.

 

Unfortunately "fixfor" is not always set and I am not able to find any instruction that will go through all sub-tasks closing them on given condition.

 

Cheers,

Jarek

Phil Murray December 9, 2019

Did you have any problems auto-closing stories? On my Transition of the issue to Completed (Done) I set the Resolution to Done but I get errors during the flow stating 'Resolution name 'Fixed' is not valid (resolution)).

Like # people like this
Irina Kalenik May 20, 2020

I have the same trouble @Phil Murray 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events