Need to move the parent issue based on subtasks status.

Janaki.R February 16, 2022

Hi Team,

 

We have certain set of subtasks issue types like sub-story, sub-bug, pre-bug, post-bug, pre-change etc and all the subtasks uses the similar statuses with different workflows now our requirement is when the parent issue is in in progress and when the other subtasks got completed  excluding pre-bug and pre-change (This pre-bug and pre-changesubtsaks can be in any status)subtasks the parent should automatically move forward to In review.

We are using JMWE addon and hosted in Jira cloud.

Thanks in advance!!

2 answers

0 votes
David Fischer
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 16, 2022

Hi @Janaki.R ,

you can use a Transition Issue(s) post-function on the sub-task transition(s) to "Done", configuring it like this:

- Target Issue(s): Parent of the current sub-task

- Transition(s): add the transition that takes the parent issue from In Progress to In Review

- Transition screen: add any field that should be set on the parent issue - this is required if the transition to In Review requires certain fields

- Conditional execution: check the checkbox and use this script (which you'll need to adjust to your sub-task issue type names and done status name - everything is case-sensitive):

{{ targetIssue.fields.subtasks 
| filter(["fields.issuetype.name","Pre-bug"], true)
| filter(["fields.issuetype.name","Pre-change"], true)
| filter(["fields.status.name","Done"], true)
| length == 0 }}

screencapture-jmwe-dev-local-atlassian-net-secure-admin-workflows-AddWorkflowTransitionFunctionParams-default-jspa-2022-02-16-14_02_34.png 

0 votes
Dave Bosman [Realdolmen]
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.
February 16, 2022

Hi @Janaki.R 

You can do this with these instructions

Keep in mind that you will need to create a small script to do the conditional check.

Another solution could be with automation for Jira. A simplified example of what you would need is the following. 

2022-02-16 13_09_24-Project automation - Jira.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events