How to run the association report via REST API
The Connector for Salesforce & Jira app supports reporting Jira work items associated with Salesforce records. To learn more about the association report, see the Run an association report page.
The association report lists all Jira work items associated with Salesforce records. You can access this report through:
The Jira user interface
REST API calls
Instructions
For Jira UI
In Jira, click the Apps menu.
Under Connector for Salesforce, select Reports.
Enter the JQL query to filter the results.
For example, to show only Jira work items associated with a Salesforce case with the Record ID5000K00002c6XA5QAM.
Example JQL query
salesforceAssociatedIds ~ 5000K00002c6XA5QAM
For REST API calls
Before you start
Make sure to replace the following values:
Replace
{JIRA_URL}with your actual Jira Base URLReplace
5000K00002c6XA5QAMwith your target Salesforce Record ID (when searching for a specific record)
You can run these API requests using Postman, or by entering the URL in your browser while logged into Jira.
To search for work items linked to a specific Salesforce record, run the following request:
{JIRA_URL}/rest/api/2/search?jql=salesforceAssociatedIds~5000K00002c6XA5QAM%20&properties=com.servicerocket.jira.cloud.issue.salesforce.associations&fields=keyTo search for all associated Jira work items (without filtering the results) with any Salesforce connection, run the following request:
{JIRA_URL}/rest/api/2/search?jql=salesforceAssociatedIds is not EMPTY &properties=com.servicerocket.jira.cloud.issue.salesforce.associations&fields=key
Need support? Create a request with our support team.
