Forums

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

How do I correctly send a comment notification using webhook?

4sker 4lyshev
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!
March 1, 2023

I use an auto-rule on my board in JSM to send notifications, but I ran into a problem.

I am using custom data in my webhook.

It looks like this

{
"issueKey" : "{{issue.key}}"
"comment": "{{issue.comment.last.body}}"
}

And this works fine as long as we don't send the attachment along with the text in the comment

In that case I get the image data along with the text, e.g.

"My test comment with image !Ym2_k1aqFY0 (1e0a18b0-18e7-449c-87a7-f4a822e386d8).jpg~width=828,height=828!"

Am I doing everything right? Can I remove the image data from the comment body?

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events