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

0 votes
Vasiliy Zverev Community Champion Dec 27, 2015

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
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,712 views 17 21
Read article

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