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

This widget could not be displayed.

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.

https://confluence.atlassian.com/display/JIRA063/Using+XML+to+create+a+workflow

https://confluence.atlassian.com/display/JIRA063/Sharing+your+workflow

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.

This widget could not be displayed.

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

This widget could not be displayed.
Peter Bengov Community Champion Nov 25, 2014

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 Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

171 views 1 3
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