# Discourse Jira

**URL:** https://meta.discourse.org/t/discourse-jira/274045
**Category:** Plugin
**Tags:** official, jira
**Created:** [August 9, 2023, 12:54pm UTC](https://meta.discourse.org/t/discourse-jira/274045 "2023-08-09T12:54:33Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![Discourse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discourse/32/148734_2.png) [@Discourse](https://meta.discourse.org/u/Discourse)
#### Post date: [August 9, 2023, 12:54pm UTC](https://meta.discourse.org/t/discourse-jira/274045/1 "2023-08-09T12:54:33Z")

</div>

| | | |
| --- | --- | --- |
| :discourse: | **Summary** | **Discourse Jira** synchronizes projects, issue types, fields, issue statuses and manages the issues. |
| 🛠 | **Repository Link** | [https://github.com/discourse/discourse-jira](https://github.com/discourse/discourse-jira) |
| 📖 | **Install Guide** | [How to install plugins in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157) |

> [@](#):
>
> :discourse2: As this is an #official plugin maintained by the Discourse team, #Support, #Contribute > Bug, #Contribute > UX, and #Contribute > Feature requests can be made in the respective categories here on Meta, and tagged with the appropriate plugin tag. Click on a link below to get one started. 👍
> 
> [❓&nbsp; **Support**](https://meta.discourse.org/new-topic?category_id=6&body=%3E%20Before%20asking,%20did%20you%20search%20first%3F%20Press%20%F0%9F%94%8D%20at%20the%20upper%20right%20to%20search.&tags=jira "Ask for support on configuring and using Discourse Jira") [🐛&nbsp; **Bug**](https://meta.discourse.org/new-topic?category_id=1&tags=jira "A bug report means something is broken, preventing normal/typical use of the plugin") [👀&nbsp; **UX**](https://meta.discourse.org/new-topic?category_id=9&tags=jira "Discussion about the user interface of Discourse Jira, and how features are presented (including language and UI elements)") [💡&nbsp; **Feature**](https://meta.discourse.org/new-topic?category_id=2&tags=jira "Discussion about how existing Discourse Jira features can be improved or enhanced, and how proposed new features could work")

### Features

- Jira projects, issue types, fields and field options will be synced automatically.
- Create a new Jira issue for a Discourse post with the dynamic issue creation form.
- Attach an existing Jira issue to a Discourse post.
- Sync the status of Jira issue using the webhooks.

### Screenshots

 ![Screenshot 2023-08-09 at 6.22.33 PM](https://global.discourse-cdn.com/meta/original/4X/d/1/c/d1c7860068da3482d791e6bd04714a22c230faf7.png)

 ![Screenshot 2023-08-09 at 6.22.22 PM](https://global.discourse-cdn.com/meta/original/4X/f/4/d/f4d1c3855ddc594380580f8b34125db14f24a373.png)

**Post Menu**

 ![Screenshot 2023-08-09 at 6.22.07 PM](https://global.discourse-cdn.com/meta/original/4X/a/d/4/ad4a07357e6f7077a25f74d2a11c3551b8fe0e9c.png)

### Configuration

Set the values for site settings below before enabling the plugin.

- `discourse_jira_url`: Put the URL of your Jira instance. It should end with `/` symbol.
- `discourse_jira_username`: The username of the user whose behalf of going to create issues.
- `discourse_jira_password`: The API key that is assigned to the user who creates issues. A password might work but is unsafe and the API was deprecated by Atlassian.
- `discourse_jira_enabled`: Enable the Jira plugin for Discourse.
- `discourse_jira_allowed_groups`: Select groups to have access to the Jira plugin features. Defaults to admin and mods.

### Webhook

Set a secret token to verify the incoming webhooks from Jira.

- `discourse_jira_webhook_token`: This token must be passed in the ‘t’ query parameter of the webhook.

For example, given that the webhook token is `supersecret`, and your base Discourse URL is `discourse.example.com`, you would set up the webhook URL as `https://discourse.example.com/jira/issues/webhook?t=supersecret ` in the webhook settings for your Jira instance.

For just checking that the webhook is triggered and the emitted body is correct, you may opt to use external websites like [RequestBin](https://pipedream.com/requestbin) or [Webhook.site](https://webhook.site/) to setup temporary webhook URLs.

### Debugging

`discourse_jira_verbose_log`: Enable this setting to log the payloads of both the incoming webhooks and outgoing API requests.

> :discourse2: Hosted by us? This plugin is available on our Enterprise plan.

> Last edited by @benji 2024-08-22T20:44:40Z
> 
> > **Check document**
> >
> > Perform check on document:

---

<div class="post-metadata">

### Author: ![jordan-violet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jordan-violet/32/281428_2.png) [@jordan-violet](https://meta.discourse.org/u/jordan-violet)
#### Post date: [November 13, 2023, 8:04pm UTC](https://meta.discourse.org/t/discourse-jira/274045/2 "2023-11-13T20:04:31Z")

</div>

@vinothkannans we’ve noticed that our users cannot actually see the status of these tickets, that only admins can see them. Can anything be done to make the “status” more visible to users?

One option could be of course making that quote block visible, or it would also be nice if you could map Jira statuses to tags, and that the topic tag updated to reflect the ticket progress (#backlog, #in-progress, #complete, etc.).

---

<div class="post-metadata">

### Author: ![colin.mckibben](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/colin.mckibben/32/307951_2.png) [@colin.mckibben](https://meta.discourse.org/u/colin.mckibben)
#### Post date: [November 13, 2023, 8:25pm UTC](https://meta.discourse.org/t/discourse-jira/274045/3 "2023-11-13T20:25:01Z")

</div>

> [@jordan-violet](#):
>
> @vinothkannans we’ve noticed that our users cannot actually see the status of these tickets, that only admins can see them. Can anything be done to make the “status” more visible to users?

To piggy back off of Jordan, I have some additional ideas to improve this plugin.

1. Ability to detach a JIRA ticket. I don’t see an option to detach or delete a JIRA ticket that I linked to a post.
2. Choose which groups can see attached JIRA tickets. Right now it only looks like site admins can see them, but we would like the option to select one or more additional groups that can see them.
3. Visibility levels. Ability to specify which part(s) of the ticket will appear to non-admins. For example, maybe we want all groups to see the ticket number and status, but not the title of the ticket, which may contain sensitive information. Then, we can specify trusted groups that can see the ticket title.

---

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [November 25, 2023, 10:28pm UTC](https://meta.discourse.org/t/discourse-jira/274045/4 "2023-11-25T22:28:17Z")

</div>

Your suggestions would really enhance the experience with this plugin.

We really need to have the content be able to be revealed to a specified group (that isn’t admins).

---

<div class="post-metadata">

### Author: ![polyzium](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/polyzium/32/344527_2.png) [@polyzium](https://meta.discourse.org/u/polyzium)
#### Post date: [December 2, 2023, 7:16pm UTC](https://meta.discourse.org/t/discourse-jira/274045/5 "2023-12-02T19:16:00Z")

</div>

Is there a OpenProject version of this? Would be great to have since we use OpenProject for managing our tasks.

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [December 6, 2023, 10:16pm UTC](https://meta.discourse.org/t/discourse-jira/274045/6 "2023-12-06T22:16:20Z")

</div>

@jordan-violet @colin.mckibben these are good suggestions to make the plugin more useful. I will keep this in mind when I work on it next time.

---

<div class="post-metadata">

### Author: ![ckshen](https://avatars.discourse-cdn.com/v4/letter/c/ad7895/32.png) [@ckshen](https://meta.discourse.org/u/ckshen)
#### Post date: [March 6, 2024, 6:25pm UTC](https://meta.discourse.org/t/discourse-jira/274045/7 "2024-03-06T18:25:22Z")

</div>

Hi, I have a question about configuring the plugin. I have been getting 500 errors when creating/ attaching issue so I think my settings are not entirely right. What did i do wrong?

First, I copied and pasted where I normally accessed my Jira instance into `discourse jira url`, although I am not completely certain about the URL since dependent on the selected Jira view the URL is different.

First, I set a random `discourse jira username`, with the `discourse jira password` copied and pasted from a generated Atlassian API token.

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/c/9/6c977b0d77cffe5b6086be033c0db60e04f77153.png)

* * *

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/7/6/4763d929f3ad0a6a7c710ea8b49d803133aacf3c.png)

* * *

Then I added a Jira Webhook and set the URL of the Jira webhook to the URL of my discourse instance plus `/jira/issues/webhook?t=`

Then I set the Webhook secret, and copy and paste that secret back to the plugin config field `discourse jira webhook token`.

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/7/3/f73c5b0ff9e7e9fde68ade81db0ad759f4d23d7f.png)

Any thoughts? Help much appreciated! Thanks.

---

<div class="post-metadata">

### Author: ![ckshen](https://avatars.discourse-cdn.com/v4/letter/c/ad7895/32.png) [@ckshen](https://meta.discourse.org/u/ckshen)
#### Post date: [March 14, 2024, 4:11pm UTC](https://meta.discourse.org/t/discourse-jira/274045/8 "2024-03-14T16:11:27Z")

</div>

Can anyone share your working plugin settings in Discourse (without the password/ token of course) so I can see how you get it to work? Thanks!

---

<div class="post-metadata">

### Author: ![mikael.gundhus](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@mikael.gundhus](https://meta.discourse.org/u/mikael.gundhus)
#### Post date: [March 25, 2024, 3:22pm UTC](https://meta.discourse.org/t/discourse-jira/274045/9 "2024-03-25T15:22:22Z")

</div>

I copied the webhook token back into the URL in the Jira webhook setup, so it says `https://example.com/jira/issues/webhook?t=abcdefghijk`, and also your discourse\_jira\_url is supposed to be `https://modernsquared.atlassian.net/` without the path.

@vinothkannans I have another question though: Is it possible to change which issue is attached to a topic after attaching, or simply remove/delete the attachment? If not, have you thought about implementing it?

---

<div class="post-metadata">

### Author: ![ckshen](https://avatars.discourse-cdn.com/v4/letter/c/ad7895/32.png) [@ckshen](https://meta.discourse.org/u/ckshen)
#### Post date: [March 25, 2024, 5:27pm UTC](https://meta.discourse.org/t/discourse-jira/274045/10 "2024-03-25T17:27:57Z")

</div>

> [@mikael.gundhus](#):
>
> I copied the webhook token back into the URL in the Jira webhook setup, so it says `https://example.com/jira/issues/webhook?t=abcdefghijk`, and also your discourse\_jira\_url is supposed to be `https://modernsquared.atlassian.net/` without the path.

Thanks @mikael.gundhus , I was able to get the plugin to connect to Jira.

But I ran into some oddity. I am not sure if I am the only one running into this issue, but the button Create and Attach issues seems to be reversed? When I click on the Create Issue button the plugin takes me to the attach issue screen:

 ![SNAG-0008](https://global.discourse-cdn.com/meta/original/4X/a/2/b/a2b11715eccf1ed7244500b58e24a8665f170391.png)

And when I click on the Attach issue button the plugin takes me to the create issue screen: MS-155 is an existing issue in Jira. If I type in a new issue, say, MS-200, which doesn’t exist in Jira, it tells me `An error occurred: You are not permitted to view the requested resource.`

 ![SNAG-0004](https://global.discourse-cdn.com/meta/original/4X/6/d/b/6db3e0de63cf4b72af4488ca721bce51d76b2c77.png)

 ![525c274cf7f1cc7db9a057aa82c9983e018e6f2b_2_1380x820](https://global.discourse-cdn.com/meta/original/4X/e/3/6/e3686a67a3b76e2af3dcdc20768f7ac5d94e5b01.png)

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [March 26, 2024, 8:37am UTC](https://meta.discourse.org/t/discourse-jira/274045/11 "2024-03-26T08:37:43Z")

</div>

@mikael.gundhus yes, there should be an option to remove the existing attachment. @ckshen seems like it have wrong headings on modal windows. We will work on these in next iteration.

---

<div class="post-metadata">

### Author: ![putty](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/putty/32/370902_2.png) [@putty](https://meta.discourse.org/u/putty)
#### Post date: [June 6, 2024, 6:35pm UTC](https://meta.discourse.org/t/discourse-jira/274045/12 "2024-06-06T18:35:50Z")

</div>

Are there plans to make this accessible to users who aren’t admins/mods? We have internal teams that are looking to move their operations to Discourse, and as it stands, the only way for them to use the JIra tool is by giving them site-wide moderation privileges.

---

<div class="post-metadata">

### Author: ![benji](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benji/32/381510_2.png) [@benji](https://meta.discourse.org/u/benji)
#### Post date: [August 20, 2024, 5:56pm UTC](https://meta.discourse.org/t/discourse-jira/274045/14 "2024-08-20T17:56:57Z")

</div>

I’ve just updated this plugin with Group permissions! It defaults to and must always include Admins, but with this update users can now make Jira tickets without needing to be Admin-level. Enjoy!

 ![Screenshot 2024-08-20 at 12.54.01 PM](https://global.discourse-cdn.com/meta/original/4X/c/e/b/ceb25e7b338b3a8365aa7b78aeb92557fd09f726.png)

---

<div class="post-metadata">

### Author: ![Adam\_Skalicky](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adam_skalicky/32/456821_2.png) [@Adam\_Skalicky](https://meta.discourse.org/u/Adam_Skalicky)
#### Post date: [October 17, 2024, 11:13pm UTC](https://meta.discourse.org/t/discourse-jira/274045/15 "2024-10-17T23:13:07Z")

</div>

Hey Folks,

Has anyone successfully got this plugin working with Jira server or Datacenter?

I am not seeing any attachment option and seeing an error in the logs.

`Job exception: DiscourseJira::InvalidURI`

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [October 18, 2024, 12:28pm UTC](https://meta.discourse.org/t/discourse-jira/274045/16 "2024-10-18T12:28:48Z")

</div>

So far we’ve only built this plugin using APIs for Jira Cloud. So you might not be successful with Jira DC.

Jira Cloud REST doc: [https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-get](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-get)  
Jira DC/Server REST doc: [https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples](https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/)

---

<div class="post-metadata">

### Author: ![Adam\_Skalicky](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adam_skalicky/32/456821_2.png) [@Adam\_Skalicky](https://meta.discourse.org/u/Adam_Skalicky)
#### Post date: [October 18, 2024, 4:06pm UTC](https://meta.discourse.org/t/discourse-jira/274045/17 "2024-10-18T16:06:39Z")

</div>

Thanks Natalie, after adding our host to the **allowed internal hosts** under Security, we were able to link and create issues. This probably is helpful to know for anyone using an internal instance of Jira. Still working on comment sync but I believe that is a config issue.

---

<div class="post-metadata">

### Author: ![gamallear](https://avatars.discourse-cdn.com/v4/letter/g/7bcc69/32.png) [@gamallear](https://meta.discourse.org/u/gamallear)
#### Post date: [November 11, 2024, 4:00pm UTC](https://meta.discourse.org/t/discourse-jira/274045/18 "2024-11-11T16:00:04Z")

</div>

Does this feature work with Jira Service Management Projects as well?

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [November 3, 2025, 4:20pm UTC](https://meta.discourse.org/t/discourse-jira/274045/19 "2025-11-03T16:20:52Z")

</div>

Seems there is an incompatibility between #jira and #reactions

> [@Unable to use reactions on IOS/Mobile](https://meta.discourse.org/t/unable-to-use-reactions-on-ios-mobile/386867/23):
>
> Hello waving_hand The issue is that the Discourse Jira plugin adds position: relative to .post-controls .actions. However, this doesn’t work because nav.post-controls has overflow-x: auto, which clips any overflowed (floating) elements — such as those added by Discourse Reactions. This only happens on mobile (viewport.sm), because overflow-x: auto is applied there.

---

<div class="post-metadata">

### Author: ![el.duderino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/el.duderino/32/555028_2.png) [@el.duderino](https://meta.discourse.org/u/el.duderino)
#### Post date: [July 4, 2026, 5:59pm UTC](https://meta.discourse.org/t/discourse-jira/274045/20 "2026-07-04T17:59:46Z")

</div>

I have tried this on our self-hosted jira datacentre instance, but seem to be stuck - I would really appreciate it if you could help.

TL;DR - I’m getting a 403 and HTML returned when it should be giving a 201 and JSON:

`/var/www/discourse/plugins/discourse-jira/lib/discourse_jira/api.rb:63:in ‘DiscourseJira::Api.getJSON’`

- I have created the Jira Personal Access Token
- I have tried several paths for the API : `/`, `/rest`,`/rest/api`, `/rest/api/latest` ⬅ I have checked that the last one works.
- No matter what I keep getting returned HTML instead of JSON.

I suspect I’m doing something wrong with the plugin configuration, but I can’t tell what. If anyone has gotten this to work with JIRA datacentre, I’d love to pick you brains!

Thanks

Bruce
