How to get issue cloned event inside jira Listener?

Hi .. There are many methods inside Jira listener like issueCreated, issueCommented etc.

But is there any issueCloned for a jira listener?

both listener , EventType doenst have any methods/fields to trap this event.

I want to handle some logic whenever an issue is cloned.

Any help??


1 answer

1 accepted

2 votes

No, there is no "issue cloned" event. The internal systems don't really see a "clone", they see "new issue", even though all the data is scraped from an existing issue.

I suspect you need to trap a "create" event instead, then scan it to see where it was cloned from - you can look for the "clone" added to the summary, or the "was cloned from" link back to the original (although, it is possible to turn both of those off, and I'm stuck on how you'd detect a clone if that happens)

issuecreated doesnt seems to get triggered when a clone is created. so i couldnt really do anything there.

Also, In my case i disabled issue links "clone" and "was cloned from" so not sure how can i take it forward. Is there a way in which i can atleast disable cloning of issues?

IssueCreated will definitely be fired... if it wasn't notifications wouldn't work for cloned issues.

Yeah.. i was testing incorrectly earlier. IssueCreated is fired when a clone is created.

Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted yesterday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

60 views 2 2
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