Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to identify whether a comment has attachment to trigger a Automation rule?

Jinsy Abey
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 7, 2020

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}}"
}

 

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events