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 vote

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 Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,772 views 18 21
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