The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add post function for all workflow transitions

Gleb Kudriavtcev
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 27, 2016

Hello!

I need to add specific post function to all of my transitions. And since the workflow is very complex, I need to manually update 100+ transitions. 

If there any way to add postfunction to every transition in a batch?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Stefan Arnold
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 28, 2016

Dont believe there is an easy way to do it.

Tried to manipulate workflow transitions a few month ago in database.

Problem is that there is no table like workflow-transitions or something.

You can find the table "jiraworkflows" but there the workflows with steps and transitions and everything is stored in xml (jiraworkflows.description).

 

Doing it in php with getting that string, analyzing it, manipulating it and writing back to database should be possible.

But i would say its more or less the same time to write such a script as it is to change 100 transitions