# Unable to integrate mattermost & jira

**URL:** <https://forum.mattermost.com/t/unable-to-integrate-mattermost-jira/7239>\
**Category:** Troubleshooting\
**Created:** [May 7, 2019, 2:05pm UTC](https://forum.mattermost.com/t/unable-to-integrate-mattermost-jira/7239 "2019-05-07T14:05:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![shuhbam](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@shuhbam](https://forum.mattermost.com/u/shuhbam)\
**Post date:** [May 7, 2019, 2:05pm UTC](https://forum.mattermost.com/t/unable-to-integrate-mattermost-jira/7239/1 "2019-05-07T14:05:21Z")

</div>

**Hello,**  
**We are unable to integrate mattermost & jira in our environment. Have followed all the steps mentioned this url.**  
**[Redirect](https://docs.mattermost.com/integrations/jira.html)**  
\*\*As per the docs have enabled jira in mattermost, created secret. In jira created webhook with that URL got from mattermost. \*\*  
**But we are not getting any notification after that integration.**  
**Getting error in jira log like:**  
**----------------------------------**  
**2019-05-06 08:50:27,575 httpclient-callbacks:thread-1 WARN anonymous 489x56x1 mg0p3l 10.X.X.X,127.0.0.1 /secure/SetupLicense.jspa [c.a.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] Client error - 404 when posting to web hook at ‘/plugins/jira/webhook?secret=XXXX&team=devops&channel=isd-linux-notification’**  
**-----------------------------------------**

**Please help to fix the issue**

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [May 7, 2019, 2:45pm UTC](https://forum.mattermost.com/t/unable-to-integrate-mattermost-jira/7239/2 "2019-05-07T14:45:11Z")

</div>

Hi @shuhbam,

What Mattermost server version are you on? Do you also see errors in Mattermost logs? What Jira version are you using? Would you be open to sharing your Jira settings?

---

<div class="post-metadata">

**Author:** ![shuhbam](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@shuhbam](https://forum.mattermost.com/u/shuhbam)\
**Post date:** [May 8, 2019, 5:50am UTC](https://forum.mattermost.com/t/unable-to-integrate-mattermost-jira/7239/3 "2019-05-08T05:50:19Z")

</div>

**Hi,**  
**Mattermost version: 5.9.0**  
**Jira version: 8.0.2**  
\*\*Don’t see relevant errors related to webhook in mattermost logs.

---

<div class="post-metadata">

**Author:** ![shuhbam](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@shuhbam](https://forum.mattermost.com/u/shuhbam)\
**Post date:** [May 8, 2019, 10:30am UTC](https://forum.mattermost.com/t/unable-to-integrate-mattermost-jira/7239/4 "2019-05-08T10:30:01Z")

</div>

Please let me know if you need any other info

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [May 8, 2019, 1:22pm UTC](https://forum.mattermost.com/t/unable-to-integrate-mattermost-jira/7239/5 "2019-05-08T13:22:23Z")

</div>

Hi @shuhbam,

Did you have a chance to take a look at the troubleshooting section in the doc: [https://docs.mattermost.com/integrations/jira.html#why-doesn-t-my-jira-webhook-post-any-messages](https://docs.mattermost.com/integrations/jira.html#why-doesn-t-my-jira-webhook-post-any-messages)?

Also, we currently only support these events: Created, Updated, and Deleted.

---

<div class="post-metadata">

**Author:** ![joewai.tye](https://avatars.discourse-cdn.com/v4/letter/j/3e96dc/32.png) [@joewai.tye](https://forum.mattermost.com/u/joewai.tye)\
**Post date:** [May 21, 2019, 4:12am UTC](https://forum.mattermost.com/t/unable-to-integrate-mattermost-jira/7239/6 "2019-05-21T04:12:49Z")

</div>

Hi @shuhbam,

In addition to the documentation that Amy asked to check out, seeing that the error is a 404, I suspect that the two servers (Mattermost and Jira) are unable to communicate with one another.

Just to confirm, are you able to telnet from the Mattermost server to Jira (and vice-versa)?

---

<div class="post-metadata">

**Author:** ![shuhbam](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@shuhbam](https://forum.mattermost.com/u/shuhbam)\
**Post date:** [May 21, 2019, 5:47am UTC](https://forum.mattermost.com/t/unable-to-integrate-mattermost-jira/7239/7 "2019-05-21T05:47:42Z")

</div>

yes both the servers are able to communicate with each other.  
And the issue is fixed now.  
Issue was happening due to the Team name in the webhook. In the webhook I have given the display name of the team(mattermost) and webhook was not able to identify the team name(display name).  
In mattermost display name of a team & the original name of the team is not always the same.  
If you change the display name then it wouldn’t change the original name of the team.  
In webhook it requires original name of the Team instead of display name.

---

<div class="post-metadata">

**Author:** ![lhsvobodaj](https://avatars.discourse-cdn.com/v4/letter/l/6de8d8/32.png) [@lhsvobodaj](https://forum.mattermost.com/u/lhsvobodaj)\
**Post date:** [March 31, 2020, 10:51am UTC](https://forum.mattermost.com/t/unable-to-integrate-mattermost-jira/7239/8 "2020-03-31T10:51:25Z")

</div>

The difference between the display name and the actual team name was causing the issue for me. To find the actual team name I executed the following steps:

1. Obtain a authorization token (included in the response headers)  
`curl -i -XPOST https://<mattermost.url>/api/v4/users/login -d '{"login_id":"<username>", "password": "<password>"}'`

2. List all the teams available  
`curl -H 'Authorization: Bearer <token>' https://<mattermost.url>/api/v4/teams | jq .`  
Result (fields omitted for privacy purposes):

```json
[
 {
   "display_name": "<omitted>",
   "name": "general",
   "description": ""
 }
]

```

To integrate Jira with Mattermost you have to use the name field instead of display\_name.
