Submit Remote Link data
Changed onUpdate / insert Remote Link data.
Remote Links are identified by their ID, existing Remote Link data for the same ID will be replaced if it exists and the updateSequenceId of existing data is less than the incoming data.
Submissions are performed asynchronously. Submitted data will eventually be available in Jira; most updates are available within a short period of time, but may take some time during peak load and/or maintenance times. The getRemoteLinkById operation can be used to confirm that data has been stored successfully (if needed).
In the case of multiple Remote Links being submitted in one request, each is validated individually prior to submission. Details of which Remote LInk failed submission (if any) are available in the response object.
Request
- Base URLhttps://your-domain.atlassian.net
- URLhttps://your-domain.atlassian.net/rest/remotelinks/1.0/bulk
- Auth
- HTTP basic
- or OAuth 2Authorization code: https://auth.atlassian.com/authorizeToken URL: https://auth.atlassian.com/oauth/token scopes: write:remote-link-info:jira
Request body
Example request
{
"properties": {
"accountId": "account-234",
"projectId": "project-123"
},
"remoteLinks": [
{
"schemaVersion": "1.0",
"id": "111-222-333",
"updateSequenceNumber": 1523494301448,
"displayName": "Remote Link #42",
"type": "security",
"description": "Remote Link #42 with more information in this description",
"lastUpdated": "2018-01-20T23:27:25.000Z",
"associations": [
{
"associationType": "issueIdOrKeys",
"values": [
"ABC-123",
"ABC-456"
]
}
],
"status": {
"appearance": "inprogress",
"label": "ANOMALOUS"
},
"actionIds": [
"action-111-222-333",
"action-444-555-666"
]
}
],
"providerMetadata": {
"product": "Opsgenie 6.10.2"
}
}Response
Submission accepted. Each submitted Remote Link that is of a valid format will be eventually available in Jira.
Details of which Remote Links were submitted and which failed submission (due to data format problems etc.) are available in the response object.
Example response
{
"acceptedRemoteLinks": [
"111-222-333",
"444-555-666"
],
"unknownAssociations": [
{
"associationType": "issueIdOrKeys",
"values": [
"ABC-123",
"ABC-456"
]
}
]
}Changes
- breaking
removed
subschema #1: IssueKeysAssociationfrom the///request propertyanyOflist - info
the endpoint scheme security
OAuth2was added to the API - info
the endpoint scheme security
basicAuthwas added to the API - info
added to the
///request propertyanyOflist - info
added to the
/response propertyanyOflist for the response status - info
removed
subschema #1: IssueKeysAssociationfrom the/response propertyanyOflist for the response status
- breaking
- info
endpoint added
- info