Update priority of cloned issues

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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

42 views 0 4
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