Skip to main content
The Jira recipe is used to retrieve data from an instance of Atlassian’s Jira issue tracking system. The configuration details and JSON recipe are added here for convenience, but you can also view them directly at the public REST configuration repository on GitHub. The following Jira elements are retrieved:
  • Projects
  • Issues
  • Comments
  • Worklogs
  • Attachments
Jira access to projects and issues may be restricted to certain users. Access of restricted information requires a Jira username and password with sufficient permissions. For each Jira issue, information on summary, priority, assignee, and more is retrieved. Attachments are indexed as a separate Solr document within Fusion. When using the Jira recipe, projects and issues run the risk of being assigned the same idKey value, leading to missing documents when indexing. To avoid this, set the idKey to self instead of id.

Jira REST Configuration

This documentation describes aspects of the Jira REST jira-v1.json file configuration such as the authentication methods, data crawled and retrieved, pagination information, variables used, and endpoints used. Terminology is also provided as a reference. The rest-connector will index each jira object listed as a separate solr document:
  • Projects
  • Issues
  • Comments
  • Worklogs
  • Attachments

Authentication methods

The Jira REST configuration supports: N.B. The API token is a requirement to authenticate the at Atlassian api. Instead of using the Atlassian account password, Use the token value for the password.

Supported crawl options

The Jira REST configuration supports the following crawl options:
  • Full crawl
  • Recrawl that rely on the strayContentDeletion feature from the connectors-service

Parser

The default parser is set to _system but can be changed to any parser based on index needs.

Pagination information

This recipe is configured to use pagination by batch size. Needs to configure Query Params, and the property ‘Pagination By BatchSize’ Query Params:
  • maxResults=${LW_BATCH_SIZE}, where ${LW_BATCH_SIZE} is a variable
  • startAt=${LW_INDEX_START}, where ${LW_INDEX_START} is a variable
Configure the ‘Pagination By BatchSize’ properties:
  • IndexStart: The starting point. Set to 0 because the Atlassian pagination is zero-index-base. From the queries above, it replaces variable ${LW_INDEX_START}, the plugin internally increases the value of the indexStart ensuring each page is requested with an updated start-point.
  • BatchSize: The number of elements to retrieve. Set to 50 by default. From the queries above, it replaces variable ${LW_BATCH_SIZE}
  • Stop Condition Key: Reference the “key” in the response, that needs to be met in order to stop the pagination. To paginate issues, it must be “issues”, to paginate projects it must be ‘values’
  • Stop Condition Value: Reference the “value” in the response, that needs to be met in order to stop the pagination. For the jira config, to stop pagination the list of objects retrieved must be empty, then the stop condition should be []

Variables used

The Jira REST configuration variables used are:
  • ${LW_BATCH_SIZE} - Used with pagination feature. This variable is used to set the maxResults query parameter, which controls the number of results that are returned in the response for both projects,worklogs and comments.
  • ${LW_INDEX_START} - Used with pagination feature. This variable is used to set the startAt query parameter, which is used to traverse the pagination. Jira pagination is zero-index-based. This means the first page number is 0.
  • ${LW_PARENT_DATA_KEY} - Used with Child Request Configuration. This variable is replaced with the ‘id’ extracted from root object, by setting the property parentDataKey. The jira use case indicates this variable can be added the URL to execute a GET request to retrieve comments, worklogs and attachments from issues

Endpoints to configure with the Jira REST connector

The following table describes the jira REST connector endpoints. Notes: The list of objects is retrieved in batches. Objects include projects, issues, worklogs, and comments. The default number of batch items retrieved is 50. You can configure the query maxResults to retrieve more objects. The maximum value to retrieve is 250.

Terminology

The following terms are provided as a reference.

Recipe