Requirement: Whenever an attachment is added trigger a URL to send attachment details to a Third-party Rest API.
I have configured an Automation rule for this, but my rule triggers every time a comment is added and the last added attachment details are sent to a third-party URL. I want to identify whether the newly added comment has an attachment or not? The Issue Attachment only checks whether the Issue has any attachment and this condition always passes.
The rule I configured is as below,
When: Issue commented
If: {{triggerIssue.comment.last.internal}} equals false
And: Issue attachments exist
Then: Send Web Request with below custom data
{
"file": "{{attachment.last.content}}",
"fileName": "{{attachment.last.filename}}"
}