Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automation: When all linked issues are done how do I move parent issue to done

I have a HR Service Desk project that uses automation rules to create Tasks within the IT Service Desk when a new employee is requested. For example, to procure a new laptop or create a new user account.

I am trying to use automation to transition the parent (HR) issue to Done once all the linked issues are marked as Done. Unfortunately, I simply cannot figure out how to do this.

Within the Automation Library, there is an automation called "When all sub-tasks are done → move parent to done". I have attempted to edit that however I haven't had any luck at all.

Any help is appreciated.


2 answers

1 vote
Brant Schroeder Community Leader Mar 24, 2021


If you want to share screenshots you can and I can help you move through it.  There is also an example of how you can do it here:

Hi Brant,

Thank you so much for the offer to help. At this point I've been trying so many different things that I have no idea what will work anymore.

I took the example from the link you provided, but it doesn't seem to do the trick. I'm sure I've made some mistake somewhere in the configuration.

Below is a screenshot of the automation as it stands now (not working).
Also is a grab of a sample ticket to give you an idea of what I'm aiming to do:
Once all of the Tasks linked to the Request have been set to "Done" I'd like the Request to be transitioned to "Done" as well.

Thanks again.


Brant Schroeder Community Leader Mar 29, 2021

I was out last week, John's answer below should work let us know if you have any issues.

0 votes
John Atlassian Team Mar 28, 2021

Hi @Greg 

You'll need to create your rule in Global automation which requires Jira Admin permission. Navigate to automation by going to Settings cog / System / Global automation (it's at the bottom of the sidebar).

When you are creating your rule click the rule details (at the top of the rule summary) and update the scope to be multiple projects. You can then select the projects where the rule needs to run (HR Service Desk and IT Service Desk).

Then your rule might look something like this

Screen Shot 2021-03-29 at 3.40.52 pm.png

  • The trigger runs the rule whenever an issue is transitioned to done (in the projects you select in the rule details)
    • Please note that every time this rule runs it counts towards your monthly limits, so even if it doesn't transition the linked issue to done it will count (because the rule had to run to learn that it wasn't ready to be transitioned).
  • Using a branch looking at linked issues (you can select a relationship type here to make your rule better, if your issues are always linked as "relates to" then I'd recommend using that)
  • The issue field condition then checks if the related issues is in a specific project (this would be your HR service desk project)
  • If the issue is in that project then a related issue condition checks that all the linked issues match the JQL status = done
  • If all the linked issues match that status then the issue is transitioned to done

I had a quick test and it worked for me. If you can add more precise conditions it will ensure your rule only performs actions on the correct issues.



Thanks John! The way the rule is structured makes sense.

However, based on the fact that the rule has to run each time an issue is transitioned to Done just makes it impracticable in my environment. I would reach my limit in no time at all.

Is there no way to add a condition that takes into account the type of issue it is (in my case a Task that relates to the parent) to determine if the rule should run?

Thank you again.

Hey Greg,

I'm trying a similar Automation for my project, I was wondering if you have solved this issue.



Hi Sara,

The answer that John provided (Mar 28) was the closest I could get to actually having it work the way I wanted. However, because the rule would need to be run at such a high rate and we would reach our monthly Automation limit in no time, there was no way I could implement it in my environment.

In our current workflow, the parent requests are manually marked as Done when all related Tasks are complete. Actually, I should say that they are supposed to be manually marked as Done... ;)


John Atlassian Team Oct 05, 2021

Oops sorry I've missed a reply here!

The only alternative I can think of is using a schedule trigger instead of issue transitioned. But this would mean the updates don't happen in real time. 

This will give you more predictability in your usage and can perform the transitions in bulk at a specified time (e.g. twice a day, at the end of the day, at the end of the week, etc...). You'll just need to make sure you check "run a JQL search and execute actions for each issue in the query".

Here is a reference of how it might look (but you'll need to figure out the JQL that's correct for your situation).

Screen Shot 2021-10-06 at 10.08.38 am.png



Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Jira Service Management

JSM Jira Automation: How to Send SLA Breached Notifications

Hi Everyone, In   this tutorial,  we will show you how you can monitor an SLA, and send notifications before or after the SLA has been breached.   SLA Threshold Trigger The SLA t...

772 views 5 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you