Forums

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

How to make Discord webhook work with automation rules?

Cristian November 17, 2022

Hello,


I'm trying to make Jira send a notification to discord any time an issue's status is changed to "Feedback Needed". This is an obvious notification for QA.

I've found the trigger in automation ("Issue transitioned from "In Progress" to "Feedback Needed") and tried to set this up (see screenshot) with a webhook from Discord/ https://skyhook.glitch.me/Untitled.png

However, there is no reaction from Discord. What can I do?

This webhook has been added separately on Jira and it works, but the notifications from there do not allow "status changed to X" as a trigger, nor are the notifications' actual words customizable.

3 answers

1 vote
Cristian November 18, 2022

Dear all,

 

I've solved this by writing the custom data in JSON (see example below) and everything worked without third parties. 

 Might be dumb to y'all but I'm not from IT, so coding is a completely new thing:)

 

DSGSDGSDHGDSFHDF.png

0 votes
Lucas Zorzi April 25, 2023

Based in @Cristian answer, I could make my own webhook who deals with more complex syntax.

 

{
"username": "Jira",
"color": 624876,
"avatar_url": "https://wac-cdn.atlassian.com/dam/jcr:5cae308d-24a4-40d0-8fe2-ce7f46cd7a02/JSW%20sign-responsive.png",
"content": "\n\n** - {{issue.assignee.displayName}} {{#if(exists(issue.Request participant.displayName))}}{{issue.Request participant.displayName}} acabaram{{/}}{{#if(not(exists(issue.Request participant.displayName)))}} acabou{{/}} de finalizar a tarefa \"{{issue.summary.jsonEncode}}\"!!!** 🎉🎉🎉:muscle: \n\n**Basicamente ela se referia a** {{issue.description.jsonEncode}}**\n\ne foi resolvida** {{issue.Solution.jsonEncode}}\n\n Com testes feitos por {{issue.Tester.displayName}}\n\n",
"embeds": [
{
"description": "*[👀 Acesse mais informações da tarefa clicando aqui.]({{url}})*",
"color": 624876
}
]
}

 

I recommend take a look at the How to use Discord Webhooks and Jira smart values 

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 17, 2022

Hi @Cristian -- Welcome to the Atlassian Community!

To clarify a bit, are you describing that your rule is not triggering, that there is not response to the webrequest, or something else?

Perhaps showing the audit log details for when this rule runs will help reveal something to explain the symptoms you are observing.

Kind regards,
Bill

Cristian November 18, 2022

Hello! Thanks for the reply. I mean that the change is made on Jira, but no message appears on Discord. There is nothing that happens on Discord, even though the event is supposed to be triggered and send a message.

 

Here's the audit log:

 

XXXXXXXXXXXX.jpg

 

The error is the same everywhere. 

Cristian November 18, 2022

If I try to use the regular Discord webhook (without going through skyhookapi), I get the following error:

YYYYYYYYYYYYY.jpg

Suggest an answer

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

Atlassian Community Events