Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Jira Automation Microsoft Teams Message with Error 400

Matthias Ortner
Contributor
April 4, 2020

Hi, I've setup an automation sending a message to microsoft teams when an issue is commented. I followed the instructions in the action details (add connector in teams channel, copy webhook url, paste it into automation action).

When the rule is triggered I get an error:

Error communicating with the API400 - Webhook Bad Request - null or empty eventType

On the other side, if I set up the same webhook communication via Jira system settings -> webhook -> create new webhook and send messages from there, it works.

what am i doing wrong?

5 answers

10 votes
Martin Ceska
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!
June 8, 2020

Try using a different Connector on MS Teams side called Incoming Webhook.

Zaldy Parian
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.
June 10, 2020

Hi Martin,

Thanks for your suggestion. I had the same error of Webhook Bad Request - null or empty eventType.

I tried your suggestion and it worked perfectly.

 

regards,

zaldy

Like Aimee Swift likes this
Nicholas Zaleski August 27, 2021

Same problem and same fix worked. Thanks for asking @zaldy parian  and thanks for answering @Martin Ceska 

Hubert Bartkowiak May 30, 2022

What should I do if I cannot see this webhook? Does it need to be enabled from somewhere else?

I've tried to follow: Create an Incoming Webhook - Teams | Microsoft Docs

Like Matteo Erriu likes this
Hubert Bartkowiak June 3, 2022

Has anyone encounter similar issue?

Like 2 people like this
Robin Stemmers
Contributor
September 20, 2022

Thanks Guys

Mine worked better with the Incoming Webhook.

No errors :)

Like Matteo Erriu likes this
1 vote
Kurt Martinsen
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 25, 2021 edited

Most likely this is caused by trying to send the request to a JIRA Cloud connector hook in Teams instead of a (generic) Incoming Webhook connector hook.

Edit: Seems like this was already answered above.

Tobias
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.
January 27, 2023

Hi @Kurt Martinsen 

thanks for your reply, worked on my end. Do you know the technical difference between both solutions?

Like Matteo Erriu likes this
1 vote
Poat
Contributor
December 11, 2020 edited

The issue is that JIRA is sending a different JSON response when doing it from a transition , vs those checkboxes.

I hooked up the webhook to a https://webhook.site/ and when I pushed the response along to to MS teams - I got "Webhook Bad Request - null or empty eventType" - which it doesn't have

 

Only the ones triggered from "created, updated" have this metadata

0 votes
Sean Tickle
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!
June 16, 2020 edited

Has this been investigated further yet as i'm attempted to trigger a webhook into a Microsoft Teams Channel based off a simple JQL query.

 

I tried to use Incoming Webhook but to no avail, any suggestions?

0 votes
Jason Sweet
Contributor
April 26, 2020 edited

[Not the answer] I have the same question.

I want to use the automation action and when I use in conjunction with creating new webhook in the way Oliver describes, it does send a message to Teams.  However, all the formatting and message content that I created in automation is not used.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Bitbucket Events