Table of Contents
...
The Automation action might look like this:
...
Info |
---|
Validating the automation will send a request/file(s) to the Endpoint! |
After configuring the automation, the attachment will be sent to the target instance, based on the defined trigger(s).
Infonote |
---|
The target and the source issue should not be the same. In this case, you will see the corresponding message in the audit log of the automation: |
...
Web request URL
Fill with the generated URL endpoint, e.g.:
HTTP method
POST
Web request body
Custom data
aql
(string) - (Required): The AQL query to find the target object.You can use either specific object keys (e.g.
Key IN (OBJ-1, OBJ-2)
) or various Smart Values (see the instructions: automation smart values - Atlassian Support).AQL has a limit of 10 objects per automation action!
sourceKey
(string) - (Required): The key of the source issue.commentId
(string) - (Optional): The ID of the comment (if applicable):If the commentId is included, only the attachments related to the specific comment will be sent. If the commentId is absent, all the issue attachments will be transferred.
You can use the {{issue.comment.last.id}} smart value to send the attachments attached to the last comment on the issue. If you need to send the attachment attached to the specific comment(s), use the specific commentId value(s) of the commentId instead of the smart value.
...
Key | Value |
---|---|
Accept | Application/JSON |
Authorization | Use the generated API token for the value in the Authorization header. |
Info |
---|
Validating the automation will send a request/file(s) to the Endpoint! |
After configuring the automation, the attachment will be sent to the Asset object of the target instance, based on the defined trigger(s).
Infonote |
---|
The target and the source issue should not be the same. In this case, you will see the corresponding message in the audit log of the automation: |
...
Note |
---|
If several attachments are sent to several objects, depending on the number and size of the attachments, the automation log may return “Response 408 SocketException: Socket closed”. However, this might be a false error and the attachments will be sent to the objects. |
...