query for ALL statuses in a workflow

Attempting to create a sql query that returns EVERY status in a given workflow. For example, given a workflow_id of "10000", I need to retrieve every status in the workflow.

3 answers

1 accepted

Workflows are stored as xml blobs.   If your database support XML access you might be able to do it through the database.   Otherwise you need export the data and use your favorite script language xml parser.



You can export the workflow as xml.  Follow the directions for exporting the workflow in the sharing your workflow doc and choose 'as xml' instead of 'as workflow'

If you really are looking for every status you can search for jira.status.id attirubute then then use the parent step node to get the name attribute.

If this is a one time thing, then just use your favorite text editor. It will be quicker.

0 votes

Workflows are not stored in a format that will let you extract it with plain SQL.

As Nic noted, this can't be done via given JQL function. Tell us more about what you are aiming for and what do you want to understand from the data. Maybe someone could help with a workaround

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 ...

3,097 views 13 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