Microsoft teams webhook client error 400

Christos Moysiadis
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.
February 12, 2019

Hello Atlassians,

my company is using Microsoft Teams lately and there is a request to integrate it with Jira. The problem is that i am receiving this 400 Client error. And its getting annoying!

I have noticed that after the creation of the webhook as the documentation and tutorial of microsoft teams says , when i create or delete an issue i am not receiving a notification in Teams. However when i update or comment or whatever i do! 

Before anyone say if i have checked the checkboxes relating to the events inside the hook , Yes i did it.

Any ideas ? I have read a lot of issues/related issues but nothing seems to help... 

Thanks in advance

CM

5 answers

1 vote
Mattias Kallvi February 21, 2019

Hi,

So, after being in contact with the app vendor support they yesterday made a new deployment on production. I have verified that it now works on my selected events (Created, Updated, Commented). No changes had to be done on my side.

Regarding the warning in the log files, I think it might be Jira-related since you get those even if you create a webhook to post to a test site. I changed the log level to ERROR on this class:

c.a.webhooks.plugin.PublishTaskFactoryImpl

After all, they are just warnings :-)

Finally, I noticed that they pick up statusCategory name rather than status name. Might be another deployment soon.

Best regards
//Mattias

Christos Moysiadis
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.
February 21, 2019

I confirm the same results :)

Thank you @Mattias Kallvi 

Like Mattias Kallvi likes this
1 vote
Mattias Kallvi February 19, 2019

In my case it's as follows:

  • Issue created does not show up in Teams
  • Same for Issue updated
  • Comment added shows up in Teams

In all of the cases above I get a warning in my Jira log file just like the ones Willems descibes. 

I have e-mailed the addon vendor. If I get any response I will let you know.

1 vote
willems davy February 19, 2019

hello we are seeing the same. We do not see anything popup with the jira server connection in ms teams and the webhook.

The log shows the following with us (i edited out the webhook url)

 

2019-02-19 12:22:38,546 httpclient-callbacks:thread-1829 WARN anonymous [c.a.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] Client error - 400 when posting to web hook at 'https://connectors.msteams-atlassian.com/JiraServer/....'

2019-02-19 12:22:55,513 httpclient-callbacks:thread-1829 WARN anonymous [c.a.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] Client error - 400 when posting to web hook at 'https://connectors.msteams-atlassian.com/JiraServer/...'

so it does seem to trigger something when creating issues but it fails

Edit: updating, placing comments etc also works with us but deletion and creation of issues does not come through in ms teams using the webhook and fail with 400 bad request error

we are using Atlassian JIRA Project Management Software (v7.7.0#77001-sha1:3be3151)

operations_vico-research_com March 11, 2020

Teams gave me a webhook uri starting with "https://outlook.office.com...."  - inspired by your comment i replaced that by "https://connectors.msteams-atlassian.com/....".

Then it started started to work....strange....

There should be a "Test" Button which helps to verify the proper function of webhooks.

Like Sean Murphy likes this
Rahul Savaikar April 6, 2021

This option does not work for me on JIRA DC on-prem v8.13

0 votes
willems davy February 22, 2019

It seems to start displaying created issues messages with us today, not sure if something was changed on https://connectors.msteams-atlassian.com to fix the issue or if it's only temporary or a fluke but we had 2 created issues messages displayed in ms teams

0 votes
Christos Moysiadis
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.
February 19, 2019

Hello again,

the only way that i found to make it "theoretically" correctly work is like, adding a post function transaction in the workflow action between "Create" & the first status with the webhook.

I could say that this this is just a workaround solution! 

Best regards

CM

Suggest an answer

Log in or Sign up to answer