How to get issue cloned event inside jira Listener?

ohmkaar kambhampati
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.
April 2, 2013

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??

Thanks..

1 answer

1 accepted

3 votes
Answer accepted
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.
April 2, 2013

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)

ohmkaar kambhampati
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.
April 2, 2013

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?

JamieA
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.
April 2, 2013

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

Like Aakash T likes this
ohmkaar kambhampati
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.
April 3, 2013

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

Suggest an answer

Log in or Sign up to answer