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!!
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 }}
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.