JQL Data Source
Overview
Please, see the example issue-cards.jrxml file in which JQL Data Source is used.
Query
In jrxml files in queryString you can use JQL expression like in JIRA navigator.
<queryString language="JQL"> <![CDATA[reporter = currentUser()]]> </queryString>
All valid JQL expressions should work. All custom functions should work. Datasource will be feeded with all issues found by JQL query which user can access in JIRA.
When building queryString report parameters can be used. Parameters expressions $P{param}and parameters clause expressions $P!{param} are resolved to its values and being substituted in query as strings. Please note that when using parameters with different than java.lang.Stringclass - their values will be converted to strings when substituted. You can use intermediate Jasper parameter with defaultExpression to workaround this mechanisms, when needed.
Fields
Field | Class | Description |
Assignee | com.codedoers.jira.smartreports.model.User, | |
Created | java.util.Date | |
Creator | com.codedoers.jira.smartreports.model.User, | |
Description | java.lang.String | |
Due | java.util.Date | |
Environment | java.lang.String | |
IssueType | com.codedoers.jira.smartreports.model.DictionaryItem, | |
Key | java.lang.String | |
Priority | com.codedoers.jira.smartreports.model.DictionaryItem, | |
Reporter | com.codedoers.jira.smartreports.model.User, | |
ResolutionDate | java.util.Date | |
Resolution | com.codedoers.jira.smartreports.model.DictionaryItem, see our documentation | |
Summary | java.lang.String | |
Updated | java.util.Date |