Automatically close subtask if another w/ the same Issuetype is open?

Anyone know if this can be done, or can point me to a script that does something similar and I can try and figure it out?

I am using Exocet to sync fields to a parent ticket, and certain subtasks will be created using ImpEx (Excel Import).  If this has already been done for an issue is there a way I can have the initial ticket closed and keep the new one?

Also going to test if Exocet can ignore all but the latest issue and that's it, meaning this might not be necessary, but exploring my options.

1 answer

1 accepted

0 vote
Gaston Valente Community Champion Jan 24, 2017

Hi, i think that this can be done with a post function or a listener to catch the new issue creation, after this event is captured, you need to:

  1. get the parent issue
  2. loop the subtasks of the parent issue
    1. if another subtasks exists with the same issuetype and has different issue key you can perform the action on this issue

this can be easily done with groovy (scriptrunner) or sil (jjupin)

 

Suggest an answer

Log in or Join to answer
Community showcase
Emilee Spencer
Published yesterday in Marketplace Apps

Marketplace Spotlight: DeepAffects

Hello Atlassian Community! My name is Emilee, and I’m a Product Marketing Manager for the Marketplace team. Starting with this post, I'm kicking off a monthly series of Spotlights to highlight Ma...

44 views 0 3
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot