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

1 vote
Accepted answer

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.

0 votes
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
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,728 views 17 21
Read article

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