Versions Compared

Key

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

...

...


Excerpt

Functions converts issue id to its appropriate key.

Smart QL does not provide a simple column in table ISSUES with issue key. This is because Jira data model does not contain it either. Issue key is a computed field, because it can be changed over time (ie, due to project key changes or moving issue to another project). 

Function takes following parameters:

TypeField
BIGINT Id of an issue

Examples


Code Block
languagesql
titleSimple SQL
SELECT P.KEY || '-' || CAST(I.NUM as VARCHAR) ISSUE_KEY, I.SUMMARY 
FROM ISSUES I 
JOIN PROJECTS P ON I.PROJECT = P.ID
LIMIT 4



Code Block
languagesql
titleSQL with ASISSUEKEY function
SELECT ASISSUEKEY(I.ID) ISSUE_KEY, I.SUMMARY 
FROM ISSUES I 
LIMIT 4


Image Modified

Image Modified