Overview

Please, see the example jasper 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, see our documentation 

Created

java.util.Date
Creator
com.codedoers.jira.smartreports.model.Usersee our documentation
Description
java.lang.String
Due
java.util.Date
Environment
java.lang.String

IssueType

com.codedoers.jira.smartreports.model.DictionaryItemsee our documentation
Key
java.lang.String
Priority
com.codedoers.jira.smartreports.model.DictionaryItemsee our documentation

Reporter

com.codedoers.jira.smartreports.model.Usersee our documentation
ResolutionDate
java.util.Date
Resolution
com.codedoers.jira.smartreports.model.DictionaryItemsee our documentation
Summary
java.lang.String
Updated
java.util.Date