Update priority of cloned issues

Rahul Aich [Nagra]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 23, 2015

Hi,

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?

Rahul

1 answer

1 vote
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 23, 2015

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