Duplicate sub-tasks are getting created

Kalpana Ramesh August 30, 2016

While creating launch task, duplicate task got created. While trying to create the issue, an error message is popping but gets created anyway but as duplicates.

The error message is as follows:

Error creating issue: Cant transition workflow instance#319029. Current state is 0, requested state is 1.

How can this be rectified?


Thanks!

1 answer

0 votes
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.
August 30, 2016

That suggests you have a (broken) post-function or listener creating extra issues.  Start with a look at the workflow - what post functions does the "create" transition have?

Kalpana Ramesh August 30, 2016

I have added some postfunctions to create sub-tasks. Apart from that there is a postfunction to fast track the issue to the next status. Could that be the problem?

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.
August 30, 2016

Yes, it probably is.  You'll need to explain your exact setup and what add-ons you are using.

Kalpana Ramesh August 30, 2016

This is what we are using:

Script workflow function : Fast-track transition an issue : If the condition is met the action 131 Pre-launch Preparation will be applied. 
Note that this should go after the Fire Event function.

There are no  conditions specified inside the post function.

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.
August 30, 2016

Which addon is it coming from?

Kalpana Ramesh August 30, 2016

I am not aware if it's an add on. It was added using the script post function - Fast track transition, so i assumed it is a built in script.

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.
August 30, 2016

Scripts are not native to JIRA, they're done by add-ons.  It could be one of several - could you confirm which one it is by looking in the "Admin -> Manage add-ons -> User installed" - I'm guessing you'll see "Script Runner" in there, but need to be sure.

Kalpana Ramesh August 30, 2016

Yes, Nic. You're right. It works using the "Script Runner" add-on.

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.
September 2, 2016

Sorry for the delay, didn't realise you'd responded.

Could you list all of the post functions you have on the transition where this is being done?  A screenshot might be easiest in this case, as we'll want to look at ordering as well as the list of things being done.

 

Suggest an answer

Log in or Sign up to answer