The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

loop when clone an issue in create transaction

Irene Espadas
October 20, 2014
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Irene Espadas
October 20, 2014

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

0 votes
Nic Brough -Adaptavist-
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 Champions.
October 20, 2014

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.

TAGS
AUG Leaders

Atlassian Community Events