Hey community.
I am wondering - is it possible to assign the 'lowest' (or the earliest) status of a subtask to the parent issue?
Our workfflow is 'todo -> in progress -> in review -> in qa -> done'. Lets say we have:
Story
- subtast1 - status 'in progress'
- subtask2 - status 'in review'
- subtask3 - staus 'in qa'
I want the parent story to have status 'in progress' - same as subtask1. If subtask1 status is updated to 'in qa' - I want Story status to be updated to 'in review' (equals subtask2 status now).
Yes, I've done this. It sounds simple, but it's actually rather tricky with Jira Automation. I'll try to summarize the approach that is working for us.
- - -
Rule A triggers on Create, Update, Transition and Move. It uses a Conditional right away to focus only on Story-level issues (so this rule ignores Epics and Subtasks). It then goes through a series of conditionals:
So "todo" would be your LowestStatus and "done" would be your HighestStatus, with 2 in between. See the "important notes" below for exiting the rule after a conditional has fired successfully.
Note that Rule A will "force" the Status of a Story to be correct, based on the Subtasks. This prevents users from updating a Story to be inconsistent. It can seem odd on a Jira board, though to move a Story and then have Automation move it back. Boards that use swimlanes by Story work best here, helping users to focus on moving their Subtasks.
- - -
Rule B uses the same trigger as Rule A, but the initial Conditional focuses on Subtasks (so this rule ignores Stories and Epics). It also uses a series of conditionals:
Again, see the "important notes" below for exiting the rule after a conditional has fired successfully.
- - -
A few additional important notes:
Will you please share your automation that creates and sets the ContinueFlag, then uses it to determine when to make the rule exit? I'm new to automation, and I don't know how to add a condition to check a custom variable. I also don't know how to terminate a rule. I'd appreciate your assistance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to create a branch rule and use "Type of related issues" as parent along with few conditions I believe you can achieve this.
Something like this.
I have explained this here if you want to get more details.
I hope it helps and gives you some direction.
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I believe the solutions suggested by both @Mykenna Cepek and @Ravi Sagar _Sparxsys_ will help you, and...please remember to think of edge-cases when testing your rule.
For example, what if someone accidentally moves a subtask and then moves it back quickly to its original status. Both moves would be seen by automation as events...however...the automation engine may "decide" not to trigger the rule again as it could detect this as a looping problem. Think of this and other scenarios when you test the rule.
Thanks, and kind regards,
Bill
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.