why groovyrunner executes the clone and link post function without stop?

Hi everybody,

i'm using clones an issue and links postfuction in create transition in order to create a related issue.

The problem that occurs is that postfunction doesn't terminate it's execution and as a result creates the same issue hundred times and after that JIRA crushes down.

You can see the order of the post functions in the attached file.

Plugin's version is: 2.0.6

JIRA version is: 4.4

Any idea of what's going on?

Thanks,

Kostas

1 answer

1 accepted

This widget could not be displayed.

You create an issue. The post-function creates another issue and links it. The issue that's created also has it's post-functions invoked. Therefore you get a never-ending chain of issues.

If you want to create another issue that has the exact same workflow, and you want an issue cloned on the create step, you need to put in some condition such that it's only true for the human-generated issue.

If you log.debug the values of transientvars and args, you should find something that you could use for the condition.

Thanx a lot. It was a terrible mistake.

Not really ;-)

Presumably you were testing on a dev instance so you didn't take down your production jira...

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

292 views 5 0
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