Duplicate sub-tasks are getting created

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?


1 answer

0 votes

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?

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?

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

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.

Which addon is it coming from?

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.

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.

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

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
Community showcase
Posted Oct 09, 2018 in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

381 views 6 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