Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×

Forums

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

How many times a status is used in the workflows

PaulaA
Contributor
November 23, 2023

Hi, 

can any one help me to query in SQL how many times a status is used? I want to know in how many workflows a status is used

Thank you

1 answer

0 votes
Radek Dostál
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.
November 23, 2023

The 'Statuses' page already lists workflows associated with statuses Issues > Statuses '/secure/admin/ViewStatuses.jspa'

Not sure how it gets that because my understanding is that workflows in db are stored simply by their .xml descriptors. There shouldn't be any status:workflow mapping in there, just a table listing statuses, and a table listing workflows and their xml descriptors.

So I'd guess Jira perhaps builds and maintains a cache for this when it initializes the workflows - i.e. already processes them.

Either way you don't want to use SQL for it, because you would have to do string matching per each descriptor.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events