Update priority of cloned issues


I want to be able to keep priorities of cloned issues in sync.

Say, i update the priority of an issue; I want to be able to automatically update the priority of its cloned issue (to a value same as that in the issue its cloned from)

What are my options here?


1 answer

1 votes

You'll need some code in a listener (I'd use the script runner to do this, as usual)

Your listener will need to 

  • Pick up any event on an issue where you could have changed priority
  • Check that it has changed (no point running more code if it has not)
  • Run JQL to get a list of the clones
  • For each clone, change priority
  • I'd recommend commenting on them to say "priority changed because priority on other issue was changed"

There are a number of problems with doing this though:

  • How are you going to identify clones?  It's fine if they still have the "cloned from" link on them, but people can remove those
  • I've assumed this is one way - if someone changes the priority on a cloned issue, I've assumed you don't want that to clobber the original and all the others as well (if it does, you need a slightly different approach to the above because you need to build the list differently, and an extra segment to avoid each change triggering the listener again)
  • Your users may get upset by having someone change their issues without consultation just because another issue is updated.



Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,042 views 13 18
Join discussion

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