...
Examples of the web request bodies for Jira automation for sending files to Asset (COMING SOON!)
Send an attachment to the specific object (another instance)
Send an attachment to several specific objects (another instance)
When the object keys are initially known
Key IN (OBJ-1, OBJ-2)
When the object keys are recorded in Jira issue of the source instance:
Key IN ({{issue.customfield_id.key}})
Send an attachment to specific object (same or another instance) when object name is known:
Send an attachment to specific object (same or another instance) when object label is known:
asd
Send an attachment to object (same or another instance) of the same name that is selected in a Assets field of on the source instance:
name in (\"{{issue.a10.name}}\"
Send an attachment to object (same or another instance) of the same label that is selected in a Assets field of on the source instance:
label in (\"{{issue.a10.label}}\"
Send an attachment to objects of known schema ID (431) and Object Type ID (5850), when the object is selected in a field on a source instance (A10). Attachemnt(s) will be sent to the objects with the same name as selected in Assets field (A10):
{
"aql": "objectSchemaId=431 and ObjectTypeId=5850 and label in (\"{{issue.a10.name}}\")",
"sourceKey": "{{issue.key}}",
"commentId": "{{issue.comment.last.id}}"
}
External application
Make a POST request with the generated URL endpoint. To authenticate your API requests, include an Authorization header in each request. The value of this header should be the API token generated from the API Tokens page. The sample request structure:
Code Block |
---|
{
"jql": {JQL_TO_FIND_TARGET_ISSUES}, //REQUIRED
"sourceKey": {KEY_OF_SOURCE_ISSUE}, //REQUIRED
"commentId": {ID_OF_COMMENT} //OPTIONAL
} |
...