Script workflow function : Fast-track transition an issue

Hi,

In post-functions part, I used 2 script workflow functions but I sometimes get this exception:

[atlassian.jira.workflow.OSWorkflowManager] Caught exception while attempting to perform action 1041 from workflow 281049 on issue 'PRDIT-27342'

com.opensymphony.workflow.StoreException: Error marking step #642379 finished: root cause: Tried to update an entity that does not exist.

Any help would be greatly appreciated.

3 answers

1 accepted

1 votes

You need to make sure that the second one has a mutually exclusive condition to the first one. Only one of these should be allowed to execute.

If you want to move issue through 2 transitions (as I understand from the screen) - it would be better to put one postfunction in current transition, and second postfunction to the next. THe behaviour of your current event is unpredictable, as you are not sure if the fire event after the transition was executed before the next try.

Thank you for your reply Alexey.

I have a condition for the first fast track transtion but not for the second one. So if the condition is not met than the second fast track transition is applied. However, it sometimes fails even if the condition is met and throws an exception that I mentioned in my post. Also the second fast track transition is applied.

You need to make sure that the second one has a mutually exclusive condition to the first one. Only one of these should be allowed to execute.

And please tag your question with the plugin's tag.

You mean that I should write a mutually exclusive condition to the first one and I cannot blank it. Am I right?

@Jamie Echlin [Adaptavist] I placed a mutually exclusive condition to the first one for the second one as per your recommendation and it works now accurately. Thank you for your help. By the way, if you convert your comment to answer then I can accept it.

0 votes
Tarun Sapra Community Champion Aug 19, 2014

Hi,

I would suggest you to to use two different transition and the second transition can be hidden transition ( part of workflow transition plugin) and make sure the second fast-track transition post-function is part of this second transition which is hidden from the user and can only be triggered from within the workflow itself.

Thank you for your reply Tarun. Both fast-track transition are hidden and so they are triggered from current transition itself.

I placed a mutually exclusive condition to the first one for the second one as per Jamie recommendation. It sometimes fails so I should wait if it works properly.

Tarun Sapra Community Champion Aug 19, 2014

If both are hidden I would suggest you to put the second transition in the post-function of the first hidden transition , it's a much cleaner approach.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,916 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot