# Embedding an external widget in Discourse

**URL:** https://meta.discourse.org/t/embedding-an-external-widget-in-discourse/273492
**Category:** Development
**Created:** [August 1, 2023, 2:26pm UTC](https://meta.discourse.org/t/embedding-an-external-widget-in-discourse/273492 "2023-08-01T14:26:35Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![cokestroke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cokestroke/32/242007_2.png) [@cokestroke](https://meta.discourse.org/u/cokestroke)
#### Post date: [August 1, 2023, 2:26pm UTC](https://meta.discourse.org/t/embedding-an-external-widget-in-discourse/273492/1 "2023-08-01T14:26:35Z")

</div>

Hi there,  
I’m trying to embed a widget that’s connected to our Jira Helpdesk on our Discourse instance but the script isn’t working. You can see it work fine on our content website [https://mystrokeguide.com](https://mystrokeguide.com) but when I try embedding it on Discourse using the theme editor I get nothing.  
Any ideas what I’m doing wrong?

---

<div class="post-metadata">

### Author: ![denvergeeks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denvergeeks/32/327671_2.png) [@denvergeeks](https://meta.discourse.org/u/denvergeeks)
#### Post date: [August 1, 2023, 4:05pm UTC](https://meta.discourse.org/t/embedding-an-external-widget-in-discourse/273492/2 "2023-08-01T16:05:00Z")

</div>

@cokestroke your link (in your post here) to My Stroke Guide site is formatted incorrectly so is not opening up your site…

 ![link-no-work](https://global.discourse-cdn.com/meta/original/4X/b/4/a/b4a456b1e55aa7b559046d4cafc9d25d4ed65c1a.png)

Also, please provide more detail about how you have tried (i.e. the code you are trying to embed, and specifically what errors you are getting, etc.)

---

<div class="post-metadata">

### Author: ![cokestroke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cokestroke/32/242007_2.png) [@cokestroke](https://meta.discourse.org/u/cokestroke)
#### Post date: [August 2, 2023, 9:52am UTC](https://meta.discourse.org/t/embedding-an-external-widget-in-discourse/273492/3 "2023-08-02T09:52:10Z")

</div>

Thanks @denvergeeks I saw your edit. I’m trying to copy a simple script using the either the Easy Footer or Landing page plugin. I’m copying the code into the head section but it’s not throwing any errors. Just not displaying. I’ve removed the key from the code below but essentially that’s it

```plaintext
<script data-jsd-embedded data-key=" " data-base-url="https://jsd-widget.atlassian.com" src="https://jsd-widget.atlassian.com/assets/embed.js"></script>

```

---

<div class="post-metadata">

### Author: ![denvergeeks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denvergeeks/32/327671_2.png) [@denvergeeks](https://meta.discourse.org/u/denvergeeks)
#### Post date: [August 2, 2023, 10:23am UTC](https://meta.discourse.org/t/embedding-an-external-widget-in-discourse/273492/4 "2023-08-02T10:23:03Z")

</div>

I still don’t understand @cokestroke – did you paste that code into the head section of the theme settings, or somewhere in a plugin? Please also provide links to (either/or) the plugin or theme component.

Have you seen this Topic…

> [@JIRA Service Desk integration?](https://meta.discourse.org/t/jira-service-desk-integration/72762/4):
>
> As I just discussed the same in a different forum I thought I give you some further insight about my idea: I am looking for a solution that also allows to directly create a support ticket out of a forum discussion. The community should try to help themselves, however if necessary they should be able to directly trigger a support case out of the discussion. A ticket should be created and the support staff be notified about that (which is already business of the ticketing software). However, he/…

Is that what you are trying to accomplish?

---

<div class="post-metadata">

### Author: ![cokestroke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cokestroke/32/242007_2.png) [@cokestroke](https://meta.discourse.org/u/cokestroke)
#### Post date: [August 18, 2023, 5:39pm UTC](https://meta.discourse.org/t/embedding-an-external-widget-in-discourse/273492/5 "2023-08-18T17:39:14Z")

</div>

I tried putting the code in the Easy Footer plugin and then tried it in the head of the theme. I’m expecting a pop up to appear at the bottom of the page so people can raise a ticket or ask a question. The Zapier integration would cost extra and might need to have a user logged in to post in the category that would pull requests into Jira Service Desk. I want it to look like it does on [https://mystrokeguide.com](https://mystrokeguide.com)

 ![Screenshot 2023-08-18 at 18.36.19](https://global.discourse-cdn.com/meta/original/4X/7/b/3/7b30218a15414f61c036c7ce58f1db54682d23e2.jpeg)  
 ![Screenshot 2023-08-18 at 18.36.45](https://global.discourse-cdn.com/meta/original/4X/9/0/2/9025dcd5ced95039535bc13bc82eb7f1697c690f.png)  
 ![Screenshot 2023-08-18 at 18.37.19](https://global.discourse-cdn.com/meta/original/4X/a/c/4/ac4fb17e22afead93b2160055bf0629a506765e2.jpeg)

---

<div class="post-metadata">

### Author: ![cokestroke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cokestroke/32/242007_2.png) [@cokestroke](https://meta.discourse.org/u/cokestroke)
#### Post date: [August 22, 2023, 8:34am UTC](https://meta.discourse.org/t/embedding-an-external-widget-in-discourse/273492/6 "2023-08-22T08:34:56Z")

</div>

I managed to do it by

- creating a new component and activating it for the current theme

- going the the Edit CSS/HTML button and pasting the script in the head region

- Important part was to add the Atlassian URL loading the script to the Content Security Policy script src in the Settings .

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [September 21, 2023, 8:35am UTC](https://meta.discourse.org/t/embedding-an-external-widget-in-discourse/273492/7 "2023-09-21T08:35:22Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
