Can I update the status on an issue by changing the status of a subtask?
Asked by Daniel Corrales:

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


Answers:
author: Mikael Sandberg
body: Hi [@Daniel Corrales](/t5/user/viewprofilepage/user-id/5413959),

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.

comments: author: Daniel Corrales
body: 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.


author: Mikael Sandberg
body: 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.


author: Mikael Sandberg
body: Something like this should do it:

![Screenshot 2024-02-20 at 3.42.32?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/307606iC5D1DA988998F8FC/image-dimensions/292x329?v=v2 "Screenshot 2024-02-20 at 3.42.32?PM.png")


author: Daniel Corrales
body: 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.


author: Daniel Corrales
body: ![for jira comm.png](https://community.atlassian.com/t5/image/serverpage/image-id/307609i15BED8A28ECE9D09/image-size/large?v=v2&px=999 "for jira comm.png")![for jira comm 1.png](https://community.atlassian.com/t5/image/serverpage/image-id/307611i7FEF389CC01D5DDC/image-size/large?v=v2&px=999 "for 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".


author: Mikael Sandberg
body: 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.


author: Daniel Corrales
body: 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.


author: Mikael Sandberg
body: It would look something like this:

![Screenshot 2024-02-21 at 10.46.15?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/307896i718F425CEEDC1215/image-dimensions/277x305?v=v2 "Screenshot 2024-02-21 at 10.46.15?AM.png")


author: Daniel Corrales
body: Thanks, Michael. Got it to work.

![Jira.png](https://community.atlassian.com/t5/image/serverpage/image-id/307945i361ACE44C73E1564/image-size/large?v=v2&px=999 "Jira.png")


Tags: cloud