Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

It allows to access to the issue changes history for the issue fitracked tracked by JIRA. You have to know the name used by JIRA to track the attribute (FIELD column value). Unfortunately those field names are documented nowhere as they belong to the private JIRA Java API.  I.e: for the issue status attribute, the field name is: 'status'. You have to figure out out the name .

...

to

...

Getting the changed fields for any issue is something really trivial. So we have to cover a much more complex issue that users might face in the real World: the time between two consecutive changes, named INTERVAL by the Driver. 

Please don't be overwhelmed due the complexity of this issue. Simply, we wanted to support the special INTERVAL column. This is a very particular use case supported by the Driver.

Warning

JIRA does not log data for issue creation as changes, so issues that did not modify the field after its creation are not included in the ISSUECHANGES table as well as the interval time in the current status is not shown either.

Warning

In the 2.5.0 version a new column was supported: INTERVAL. 

A new table is supported for Issue Status Transitions since the 6.1.0 version. You should use it to get the interval that each issue remained in a particular state.

Example:

Explore the status changes in my reported issues during last week

use it in the query.


Example: How to get re-assigned issues in DEMO project?

Code Block
languagesql
themeEmacstitleExample 1
select 
  KEY(JQL.ISSUE) AS "Issue",
  ic.field AS "Field",
  ic.fromvalue, 
  ic.tovalue, 
  ic.fromstring,
  ic.tostring, 
  formatdurationnatural(interval    c.issueid, 
    c.username, 
    c.created, 
    usernamekey(c.fromValue) as "From user", 
    usernamekey(c.toValue) as "Interval (Natural time)To user" 
from 
    jql 
   JQL      join 
     issuechanges icc on icc.issueid = JQLjql.issueid 
where 
     JQLjql.QUERYquery = ' reporterproject = currentUser() and updated < -7dDEMO ' 
   
and    ic.field='status'  order by and  
"Issue",   "Field",    icc.createdfield = 

...

'assignee'


ISSUEID  
FROMVALUE
USERNAME  
TOVALUE
CREATED  
FROMSTRING
From user  
TOSTRING
To user  
Interval (Natural time)DEMO-11status100003To DoIn Progress0mDEMO-12status100003To DoIn Progress0mDEMO-15status100003To DoIn Progress2d 4h 44mDEMO-15status310001In ProgressDone2d 9h 52mDEMO-16status100003To DoIn Progress3w 0d 0h 48mDEMO-16status310001In ProgressDone1d 1h 48mDEMO-17status100003To DoIn Progress10h 44mDEMO-17status310001In ProgressDone3d 5h 52mDEMO-18status1000010001To DoDone20h 30mDEMO-19status1000010001To DoDone3d 20h 24mDEMO-20status1000010001To DoDone5d 8h 59mDEMO-21status1000010001To DoDone1w 0d 15h 37mDEMO-22status1000010001To DoDone1w 3d 6h 57mDEMO-23status1000010001To DoDone1w 5d 8h 35m

...

10100admin2019-10-03 09:44:55.833nulladmin
10100admin2019-10-05 13:38:06.878adminp