loop when clone an issue in create transaction

I use scriptrunner postfuncion "Clones an issue and links"  with this parameters and the result is an infinitive loop that generates a los of issues. What I am doing wrong?

Condition : issue.issueTypeObject.name == 'Task'

Target Issue Type:  Task

Additional issue actions: 

checkLink = {link -> false};
issue.summary = 'Cloned issue'

Issue Link type: clones

2 answers

0 votes

You need to create an issue of a type which has a different workflow that does NOT have this post-function on it.

Or, you could add a new custom field to the issue type (read only, no need to put it on screen), set it on the primary new issue, and then interrogate it and break oout of the clone process if it is found on the originating issue.

I try to add a new custom field but something does not work. It doesn't make a loop but does not clone de issue.

The new field has this features:

PeticionHideable Free Text Field (unlimited text)

Issue Type: Task

I put a default value to it.


If I put a condition of the issue :

cfValues['Peticion'] == 'UAGE'


But I don't know if this is ok.

Please, help me. Thank you

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,760 views 11 18
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