Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

@Greg 

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: https://community.atlassian.com/t5/Automation-questions/How-can-I-transition-the-parent-when-all-subtasks-are-resolved/qaq-p/159407

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.

linkedTaskAutomation.jpgtransitionExample.jpg

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Service Management

Announcing Mindville Insight is now part of Jira Service Management!

Hello Community! We’re excited to announce that Mindville Insight’s asset and configuration management capabilities will now be integrated into Jira Service Management Premium and Enterprise plan...

751 views 12 15
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