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.
×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
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.