Forums

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

SQL query to know transaction used to ticket.

Timofei Popov August 14, 2018

Hello, everybody.

I have 2 transactions between Open and In Progress. That's transactions have different id and functionality.

I need to know when and which transaction used to ticket.

How to make a query to SQL correctly?

1 answer

1 vote
Nic Brough -Adaptavist-
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.
August 14, 2018

You can't do this.  And even getting vaguely close is a lot harder in SQL than it is doing it any other way.

The problem is simple - Jira does not record the transition used.  It only records the start and end status.

If you have a simple workflow where there is only one transition between two status (which is almost all workflows), you can work out the transition by looking at the workflow.  But, of course, if you have edited the workflow and changed transitions, you might not be sure of the transition that was used historically.

On top of that, for doing this with SQL, you would need to parse and understand the workflow XML which is stored raw in the database.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events