Forums

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

Where the Jira Workflow Transition Conditions are saved in the database?

Ranganathan February 6, 2018

Hi,

 

I need to do a immediate maintenance on our workflows. I need a SQL query to retrieve all the Transition Conditions for a given workflow, from the database.

Thanks In Advance!!!

2 answers

1 accepted

2 votes
Answer accepted
Alexey Matveev
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 Leaders.
February 6, 2018

You can get info about a workflow by this query

SELECT id, workflowname, creatorname, descriptor, islocked
FROM jiraworkflows;

but all info is saved in the descriptor field in xml format. You would need to parse the xml file.

Matt Doar
Community Champion
February 6, 2018

Or use ScriptRunner to access the workflow Java object and go from there

Ranganathan February 7, 2018

Think will have to manually extract from the XML

0 votes
Christian Czaia [Decadis AG]
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 Leaders.
February 6, 2018

I guess you should have a look at the jiraworkflows table in the DB.

There has been another question like this here: https://community.atlassian.com/t5/Jira-Core-questions/Which-table-in-database-saves-the-transitions-which-assign-an/qaq-p/391447

Cheers

Christian

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events