Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Transition the parent status based on multiple subtask statuses

Tina.Henry February 4, 2022

I'm working in a Team Managed project and could use some help getting started with this automation.  Each issue has several subtasks that can be defined by the subtask summary name.  I would like to create an automation that will transition the patent task from one status to the next based on one or more specific subtasks' statuses being set to "done". 

So for instance when both the subtask with summary containing "Outline Requirements" and the subtask summary containing "Story Review" are transitioned to "Done", move the parent task to from "Design" to "Development"

I've made a few attempts at creating this automation, but I'm not certain which triggers and/or contitions to apply that would result in this autmation triggering when both of these subtasks are transitioned to Done. 

1 answer

0 votes
Florian PEREZ [Valiantys Administrator]
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 5, 2022

Hello,  

This seems complicated and a very particular use case, just the way I like them!  

So you want an issue to transition to a particular status, depending on the creation of the right subtask. 

I'll not take the time to ask you what's the use case even if I think it should be discuss because there's better way to resolve the case IMO.  

First:  You should avoid working on part of summary. To get one part of the summary you need to use regex or something like this and this is hard to debug, plus it makes it hard to modify in the future. 

Advice would be to go on labels on the subtask and check for the right label to transition the task related to subtask. Even like this it's not easy if you want to check if multiple subtasks are here (you check that you have SubTask1 and ST2 and ST3... to move the corresponding issue. 

So now let's go on my solution: 

  • Fill the subtask with a related label. 
  • Build an automatisation that copy the label on the parent task
  • Check the labels of the parent task 
  • Move the task into the corresponding status

It's more easy to work on the parent task than in the subtask because you dont go into inheritance multiple checks.

Again it should be a better way to do this task and if it were one of my requests, I would try to understand more the case to get a better solution. 

 

Hope this help! 

Tina.Henry February 7, 2022

Thanks, @Florian PEREZ [Valiantys Administrator] .  I'm not quite following how to use the label.  If a use case helps to clarify, Here's my scenario:  When an issue is created, an automation creates 7 subtasks.  These are the tasks that will be performed in develpling our code, are done in basically this order,  and can be assigned to various team members.  The workflows on the board are shown below.  Subtasks have a workflow of Pending, In Progress, and Done.  I would like the parent issue to move through though the workflow on the board based on what subtasks are completed.  this way it's easy to see on the board where the issue is without having to open the issue to check the status of the various subtasks. 

So my thought was to check status of subtask where summary contains "Outline Requirements" and the status of the subtask where summary contains "Story Review" and if both are Done, transition the parent issue to Development.   Could you elaborate on how labels would be used in this case?

Thanks!

jira transition1.JPGjira transition2.JPG

Like Jonathan Nogueira likes this

Suggest an answer

Log in or Sign up to answer