How to detect via script listener if an Issue was cloned

We are using a script listener in JIRA to generate and store a value in the Issue. The script is executed after creating and updating an Issue. But after cloning it is not possible to differentiate between Issue creation and Issue cloning. The information whether the Issue is a clone or not is not available when the listener for the Issue creation runs. There is also no event for linking an Issue available.

Is there a possibility to detect in JIRA if an Issue was cloned?

1 answer

0 vote

Only if it is specifically logged, and that information not lost.

By default, a cloned issue is usually amended such that

  • It is linked back to the issue it was cloned from with a "clone of" type link
  • The summary is prefixed with "Clone -"

So, in theory, you can look for one or both of those.

But, the automation can be changed or turned off, and also the effects could be removed by editing the issue.  The only place you'll be able to reliably tell is by reading the history of the issue.  When cloned, you won't see anything, but you'll be able to see if one or both of the automated clone flags used to be set if someone removes them.

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 Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

179 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