Error when auto transitioning a workflow

Hi 
I created a Fast-track transition as a Workflow post-function in an issue and it should fire every time a issue is created.
All issues have priority = Normal initially so I use it as a condition to fire the event.
Occasionally I get this error "Error creating issue: Can't transition workflow instance #192865. Current state is 0, requested state is 1"and when creating an issue but I have not been able to find any pattern when this happens. 
I have not found helpful information on this error on the internet so I'm hoping someone here can help.

2 answers

At first lets understand what do you want to do.

  • You have a post-function which should be called after issue creation. 
  • Have this function worked before or you are developing new one

General advices:

  • Test that this code work (see this to speed-up development:https://answers.atlassian.com/questions/32982259)
  • Make sure that your postfuntion follows standard one to create an issue (if not, you will try to update unceated issue)
  • Why do you use condition "priority = Normal". What is the reason to do it?
  • Do you fire an event into postfunction. Why no trying create issue one?

 

Hi Vilhjálmur,

Which versions of JIRA and SR you use ? There is a similar bug report please have a look at GRV-691 

Kind regards

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

174 views 1 17
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