Versions Compared

Key

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


Note

This function does not expose all data, but only those which are available for user due to his JIRA permissions

...

User should provide following parameters:

TypeNotes
String

Projection of fields to be used as column is a result table. Those are issue fields from JIRA, 

Valid syntax is

Code Block
`fieldname` [`]fieldname[`] [PATH `valid-xpath-expression`] [CAST `valid-sql-type`] [AS `column-alias`] [, ...another fields]

PATH, CAST, AS are keywords.

fieldname is obligatory, where PATH, CAST and AS subexpressions are not.

valid-xpath-expression is an XPATH expression, see Handling ANY (java objects) type with XPATH

valid-sql-type is a SQL datatype to be used when XPATH is used. This is optional, Smartl QL will always deduce by its own a valid type for you.

column-alias is an alias you want to use instead of a field name.

Note

Please note the use of grave accents  - ` . Grave accent are obligatory for valid-xpath-expression, valid-sql-type and column-alias. For fieldname grave accents can be omitted.


Examples:

Code Block
'Key, Project, Summary'


Code Block
'`Key`, `Project`, `Summary`'


Code Block
'Key AS `ISSUEKEY`, Project, Summary'


Code Block
'`Key`, `ReporterObject` PATH `emailAddress` AS `EMAIL_OF_REPORTER`'


JQLValid JQL query

...

Supported builtin fields are:

NameTypeNotes
IDBIGINT NOT NULLDatabase ID of an issue - this is not an issue key. 
CREATEDTIMESTAMP
ASSIGNEEVARCHAR
ASSIGNEEOBJECTANYJava object with class ApplicationUser, see Handling ANY (java objects) type with XPATH.
DUEDATE, DUETIMESTAMP
CREATORVARCHAR
CREATOROBJECTANYJava object with class ApplicationUser, see Handling ANY (java objects) type with XPATH.
DESCRIPTIONVARCHAR
ENVIRONMENTBIGINT
ESTIMATE, TIMEESTIMATEBIGINT
ORIGINALESTIMATE, TIMEORIGINALESTIMATEBIGINT
TYPE, ISSUETYPEVARCHAR
KEY, ISSUEKEYVARCHAR
PRIORITYVARCHAR
PROJECTBIGINTPoints to Table PROJECTS
PROJECTOBJECTANYJava object with class Project, see Handling ANY (java objects) type with XPATH.
REPORTERVARCHAR
REPORTEROBJECTANYJava object with class ApplicationUser, see Handling ANY (java objects) type with XPATH.
RESOLVED, RESOLUTIONDATETIMESTAMP
RESOLUTIONVARCHAR
STATUSVARCHARPoints to Table STATUSES
SUMMARYVARCHAR
TIMESPENTBIGINT
UPDATEDTIMESTAMP
AFFECTEDVERSIONSANYJava object with class Collection<Version>, see Handling ANY (java objects) type with XPATH.
FIXVERSIONSANYJava object, with class Collection<Version>, see Handling ANY (java objects) type with XPATH.
COMPONENTSANYJava object with class Collection<ProjectComponent>, see Handling ANY (java objects) type with XPATH.
VOTESBIGINT
WATCHESBIGINT
ATTACHMENTSANYJava object with class Collection<Attachment>, see Handling ANY (java objects) type with XPATH.
LABELSANYJava object with class Collection<Label>, see Handling ANY (java objects) type with XPATH.

...