During Backlog Refinement, DEV and QA Sub-Tasks are created. I want to move the parent Story from IN PROGRESS to CODE REVIEW when all of the Dev Sub-Tasks are completed.
I am using components to help identify which Sub-Task belongs to which group. Development Sub-Tasks have Component=DEV and QA Sub-Tasks have Component=QA.
I've built an automation and tried using "If some tasks...", but it will change the Story status if only one DEV task is complete. I've tried using "If all tasks..." but then the Story will not change status unless all of the QA and DEV tasks are complete.
You can use lookupIssues to bring a JQL reference of all your Dev Subtask and of all your Dev Subtask Completed.
Try something like this:
Add a lookupIssues action and insert this JQL: parent = {{issue.parent}} AND component = DEV
After create a variable to bring how many DEV subtasks you have inside your Story. Create a variable with the Smartvalue: {{lookupIssues.size}}
After created your first variable, add a second lookup to get subtasks with DEV Component completed. Use This JQL: parent = {{issue.parent}} AND component = DEV AND status = "Completed"
For this lookup create a new variable to get the reference of DEV Subtasks created. Use the same earlier smartvalue:
{{lookupIssues.size}}
Now you just need add an advanced compare condition comparing your both variable
After all this, add your branch for Parent and add your action for transition issue.
Hope this helps you :)
Hello @Steve Huffman
Please show us your automation rule, particularly the details of your use of "If xxx tasks...".
I think what you will have to do is add two conditions for Related Issues / Subtasks where one condition is
If some match specified JQL
Component=DEV and status=Done
...and the second condition is
If none match specified JQL
Component=Dev and status!=Done
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.