Updated MS Teams webhooks does not work

Niklas Malmberg
Contributor
October 16, 2024

We use MS Teams channels to show important notifications from Jira automation, and this has worked fairly well for a year or so. Now Microsoft has announced that they change the webhooks, and last week started to display a warning message that the webhook URL needs to change no later than 31 December.
So I updated the URL, created new webhooks and updated the Jira rules with this new information. 
And then the notifications stopped coming. 

From Jira point of view, everything looks ok, the audit log shows success.  (I attach a simple test to illustrate)

Is there a known problem in Jira automation to use the new Teams webhook URLs? (far-fetched perhaps)
Have anyone else in this community encountered this? Found any way to fix this? 

Screenshot 2024-10-16_000287.png

Screenshot 2024-10-16_000285.png

5 answers

3 votes
Lefteris Spatharakis
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!
October 21, 2024

I'm also having this issue. After I updated the webhook url, it does not work.

Didn't find any solution so far.

Using curl to test the POST part it works:

curl -H "Content-Type:application/json" -d "{'text':'Hello World'}" <webhookurl>

Niklas Malmberg
Contributor
October 21, 2024

Just verified my newly created webhooks like suggested above, and that worked just fine for me too. Great tip, @Lefteris Spatharakis !

1 vote
Niklas Malmberg
Contributor
October 28, 2024

I've found a workaround now, somewhat functioning. 

Instead of normal Teams webhooks, I have to use teams Workflows. So I have created one following these steps (see below) to get an URL to paste into Jira automation rule. And it works, but with the following drawbacks:

1. Can only use public channels now, no longer private channels

2. Sender of notification is no longer 'Jira Automation', it's the personal user account which created the workflow


Steps:
Screenshot 2024-10-28_000311.pngScreenshot 2024-10-28_000310.pngScreenshot 2024-10-28_000312.pngScreenshot 2024-10-28_000313.png

 

The channel postings will look something like this now:

Screenshot 2024-10-28_000314.png

Miguel Goyanes
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!
October 28, 2024

@Niklas Malmberg Thank you

Can you please share how you have configured on Jira the Message title and Message so that links are displayed?

Mine does not display links and I would like that the card would allow for the issue link to be clickable.

Here is mine.
10-28 at 10.00.19.png

Like # people like this
Niklas Malmberg
Contributor
October 28, 2024

In your rule part that send messages to Teams, this line

Issue: [ **{{ issue.key}}** ] ( {{issue.toUrl}} ) _{{issue.Summary}}_ 

will result in a line in Teams that will looks something like


Screenshot 2024-10-28_000315.png

** makes the text bold

_ makes the text italic

[ key ] (URL) creates the clickable link

 

Like Miguel Goyanes likes this
Miguel Goyanes
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!
October 28, 2024

Thank you. Manage to address my issue.

Like Niklas Malmberg likes this
Robert Banister
Contributor
November 21, 2024

I just tried this but it is not working like yours shows.

In my message body I have:

{{#lookupIssues}}
[ {{issue.key}} ]
( {{issue.toUrl}} )
- -
{{/lookupIssues}}

 

And my Teams channels receives the following:
Screenshot 2024-11-21 at 11.52.14 AM.png

Niklas Malmberg
Contributor
November 22, 2024

@Robert Banister I suggest you try to 'debug' your rule, make it in smaller chunks and send each statement to the audit log (Log action component) to see why it does not behave like you want it to.
My money is on the lookupIssues which I find somewhat difficult to use :)  

Ps
Different Jira versions seem to have slightly different syntax and feature sets for automation rules. At least - based on community postings - that's how I understand the situation. 


0 votes
Mark Albis January 3, 2025

I am having the same issue. Weirdly the Audit Log in Jira automation tells me messages were successfully sent to Teams...but they weren't.

Has anyone found a solution to this problem yet?

Niklas Malmberg
Contributor
January 8, 2025

It did the same for me, see first post
Screenshot 2025-01-08_000373.png

0 votes
Max S November 15, 2024

Hi guys,

so i am having trouble setting the automation rule up in the fist place :(

I have created the Teams Workflow for posting to a channel when recieving a incoming webhook.

Copied over the URL, added it to the Jira Allowlist (both checkboxes are unchecked).

Diffrent from your Screenshot, by now I have to create a "Secret Key". Did that, gave it a name and posted to URL.

So, when creating a new rule, after selecting the action "Send Teams Message", i can select the Key with the webhook url.

And from here I'm stuck.

image.png

 

"Please enter a valid MS Teams webhook URL"

 

What did I miss?

 

Best regards

Max

Niklas Malmberg
Contributor
November 18, 2024

Unsure what you have done, but that does not look like any URL (Uniform Resource Locator, an address on the web) I've ever seen before. 

Mine looks like https://prod-148.westeurope.logic.azure.com:443/workflows/4862f5c7c7114c2597cb7.....

Max S November 21, 2024

Hi, it looks thtat way because Jira wants me to create a Secret Key. This is just the name for my Webhook URL. 
image.png

 

image.png

 

And I did try to just paste the URL in the name field ;)
image.png

 

When picking the action, i am presented with a Dropdown menu, from which I can choose the key.

image.png

 

Thank you very much

 

Best regards

Max

Max S November 26, 2024

Hi,

solved it.It is a known bug in the Jira Automation Plugin. Updated the Puglin

 

Best regards

Max

JuLion Waldeck
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!
January 14, 2025

Hi @Max S,

can you please share to which version you had to update to get it to work? We're experiencing this problem on a Jira Data Center V 9.4.30 with Automation for Jira V 9.0.3 right now.

Or do you have the link to the bug ticket, where this is addressed?

Thank you!

0 votes
Niklas Malmberg
Contributor
October 16, 2024

Here's an example of the warning message displayed, urging us to update the webhooks

Screenshot 2024-10-16_000288.png

Link to Microsoft info around this topic: 

https://learn.microsoft.com/en-us/microsoftteams/m365-custom-connectors#update-connectors-url 

Suggest an answer

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

Atlassian Community Events