ScriptRunner - Set Limitation on default Clone

Hello Community,

Happy New Years to everyone!

I am currently attempting to set some limitations to cloning.

In Jira when I clone an issue (not through a custom script, but simply using the default Jira Clone button) I want the cloned issue to have a certain amount of information from the parent but not all.

Through a custom Listener I am able to delete these fields once an issue is updated/created/moved/etc, but for somereason I cant do it when an issue is cloned.

The "event" I am listening for is "All Issue Events".
Would anyone know what event is triggered when an issue is cloned so that I can run my code based on that?

I only want my code to run once, that is when the issue is initially cloned.

Any help is greatly appreciated!


1 answer

1 accepted

1 vote
Alexey Matveev Community Champion Jan 02, 2018


There is no Issue Cloned event. Cloning issue means creating a new issue with prefilled fields. That is why you have to listen for the Issue Created event but you can not distinguished between a created issue and a cloned issue.

Hi @Alexey Matveev,

Thank you for bringing that up.

I realized that what was wrong wasnt the use of the events but rather my condition.

I ended up realizing that an issue is cloned when it has an outward link of LinkType "Cloners".

I wrote some Groovy code to check if the issue created had such a link (since issues that arent cloned and are created wont have this link). If that condition passed then I did all my evaluation.

Thank you for your answer!


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 May 30, 2018 in Marketplace Apps

Three tips for boosting your board's efficiency with Story Maps

Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...

845 views 2 9
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