Associate API: POST /external/api/association
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=false
Request 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 totrue
to create a view-only association.
Default:false
autoPush
(boolean, optional): Set totrue
to enable automatic data push from Jira to Salesforce.
Default:false
autoPull
(boolean, optional): Set totrue
to 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