Associate API: POST /external/api/association
Before you start
Before you start working with REST APIs, make sure you have:
Checked the Authenticate API instructions.
Use the correct Connector for Salesforce and Jira Cloud instance URL: https://sfjc.integration.appfire.app or https://eu-sfjc.integration.appfire, depending on your data residency location.
Endpoint: POST /external/api/association?allowUpsert={}
Description
The Associate API associates a Jira issue with a Salesforce record. You can specify whether the association should be view-only and configure automatic push and pull behaviors.
Query Parameters
allowUpsert(boolean, optional): Whether to allow upsert functionality (insert or update).
Default:false
Example
POST /external/api/association?allowUpsert=falseRequest body
jiraIssueId(string, required): the Jira issue ID is the unique identifier of the Jira issue you want to associate.son(string, required): Salesforce object name, for example,Case,Account,Contact.soid(string, required): Salesforce object ID for the specific record to be associated with the Jira issue.viewOnly(boolean, optional): Set totrueto create a view-only association.
Default:falseautoPush(boolean, optional): Set totrueto enable automatic data push from Jira to Salesforce.
Default:falseautoPull(boolean, optional): Set totrueto enable automatic data pull from Jira to Salesforce.
Default:false
Example request body
{
"jiraIssueId": "10173",
"son": "Case",
"soid": "500Qy00000VvNShIAN",
"viewOnly": false,
"autoPush": true,
"autoPull": true
}Example response body
{
"data": {
"jiraIssueId": "10173",
"son": "Case",
"soid": "500Qy00000VvNShIAN",
"viewOnly": false,
"autoPush": true,
"autoPull": true
},
"message": "Association created successfully",
"success": true
}
Related pages
Need support? Create a request with our support team.
