Forums

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

Can I update the status on an issue by changing the status of a subtask?

Daniel Corrales January 24, 2024

I want to update the status of a parent issue by changing the status of a subtask with an automation. Is that possible?

1 answer

1 accepted

0 votes
Answer accepted
Mikael Sandberg
Community Champion
January 24, 2024

Hi @Daniel Corrales,

Welcome to Atlassian Community!

Yes, this can be done with automation, and if you look under the Templates tab you will find a rule called "When all sub-tasks are done → move parent to done" that you can use as a starting point. If you do not need it to check all subtasks if the parent should change status then you just have to remove those steps.

Daniel Corrales February 20, 2024

I just need the status of the parent task to change if a specific sub task's status is changed. Is it also possible? Thank you. 

Mikael Sandberg
Community Champion
February 20, 2024

Yes, that can be done. You can use the rule I pointed to above and just change it to fit your use case. If any subtask should move the parent to a specific status, then just remove the condition that checks if other subtasks are in a specific status.

Mikael Sandberg
Community Champion
February 20, 2024

Something like this should do it:

Screenshot 2024-02-20 at 3.42.32 PM.png

Daniel Corrales February 20, 2024

Thanks again. Let's say I want a specific sub task with a specific name to change the status of my parent task when its status is changed. For example: my sub task name is "Account funded" and the status of this sub task is changed to "complete". I want my parent task status to be changed to "account funded" only when this specific sub task status is changed. I hope I'm being clear. Thank you for your time. 

Daniel Corrales February 20, 2024

for jira comm.pngfor jira comm 1.png

 

First image are the status available for the "account funded" sub task. When that specific sub task is changed to "complete", I want the status of my parent task (second image) to be changed to "complete-funded". 

Mikael Sandberg
Community Champion
February 21, 2024

Then just use a JQL condition that picks up that specific subtask, something like this:

issuetype = sub-task AND summary ~ "\"Account founded\""

And then use the status you want to trigger it on in the initial component.

Daniel Corrales February 21, 2024

Hey, thanks again for your time and responses. I haven't been able to achieve it. Can you show it to me visually or with a youtube example? I have never used a JQL condition before. Thank you. 

Mikael Sandberg
Community Champion
February 21, 2024

It would look something like this:

Screenshot 2024-02-21 at 10.46.15 AM.png

Like Daniel Corrales likes this
Daniel Corrales February 21, 2024

Thanks, Michael. Got it to work. 

 

Jira.png

Like Mikael Sandberg likes this

Suggest an answer

Log in or Sign up to answer