Hello,
I just wanted to move a parent of a sub-task when the last sub-task of that parent moved to In Progress.
Is this possible?
Hello @Sara Chaves
Welcome to the Atlassian community.
What status do you want to assign to the parent issue in that case? Does it matter what status the parent issue is currently assigned before you make the change?
What would the statuses of the other subtasks be at this point? Do they all have to be In Progress, or could some of them be other statuses like Done?
So
Parent issue -> To Do
Sub task 1 -> To Do
Sub task 2 -> To Do
Sub tast 3 -> To Do
THEN
Parent issue -> To Do
Sub task 1 -> In progress
Sub task 2 -> To Do
Sub task 3 - > To do
Then
Parent issue -> To Do
Subtask 1 -> Done
Sub task 2 -> In Progress
Sub task 3 -> To Do
Then
Parent issue -> In Progress
Subtask 1 -> Done
Sub task 2 -> Done
Sub task 3 -> In Progress
Then
Parent issue -> Testing
Subtask 1 -> Done
Sub task 2 -> Done
Sub task 3 -> Testing
Then
Parent issue -> Done
Subtask 1 -> Done
Sub task 2 -> Done
Sub task 3 -> Done
This is what I would like the status of the Parent will just change when the last sub-task also changes.
Is this possible?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So when you say the "last" subtask, you mean the last one in the list of subtasks, correct?
Do you have some unique identifier on the "last" subtask that exist on all "last" subtasks and not on any other subtasks; a label, or a Summary, or unique issue links, or some other attribute?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, because for some tickets, I could not know from the beginning what could be the last one to be moved.
So I would need to know what would be the last one to be able to automate that, right?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I did a bit of experimenting and it appears that this smart value will refer to the subtask that is "last" in the visual list of subtasks in an issue.
{{issue.subtasks.last}}
I am not positive that is 100% reliable. I did not do a lot of testing, and only tested with a Company Manage project. I did try reordering the subtasks in an issue and rerunning an automation rule to print {{issue.subtasks.last.key}} and it was consistently printing the issue key of the last task in the list.
So, you could use an automation rule like this:
"Copy from trigger issue" works in the last step if your subtasks and parent issues use the same workflow/status values.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.