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?


Thanks!

1 answer

This widget could not be displayed.

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 Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

206 views 1 3
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