# \#javascript

**URL:** https://community.developer.atlassian.com/tag/javascript/57.md

[Latest](https://community.developer.atlassian.com/latest.md) · [Categories](https://community.developer.atlassian.com/categories.md) · [Tags](https://community.developer.atlassian.com/tags.md)

---

## [Refresh Issue on Board](https://community.developer.atlassian.com/t/refresh-issue-on-board/93725)

<div class="topic-metadata">

**Author:** [@anon96507372](https://community.developer.atlassian.com/u/anon96507372)\
**Replies:** 0\
**Last updated:** [July 9, 2025, 2:48pm UTC](https://community.developer.atlassian.com/t/refresh-issue-on-board/93725 "2025-07-09T14:48:59Z")

</div>

How do I refresh a single Issue on the Backlog or Spring/Kanban-Board via Javascript, if it has changed in the background (eg. via REST call)? I tried various calls I found, like those: JIRA.trigger(JIRA.Events.REFRESH…

---

## [Media not getting rendered using @atlaskit/renderer](https://community.developer.atlassian.com/t/media-not-getting-rendered-using-atlaskit-renderer/56360)

<div class="topic-metadata">

**Author:** [@anon23434792](https://community.developer.atlassian.com/u/anon23434792)\
**Replies:** 3\
**Last updated:** [March 21, 2025, 8:55am UTC](https://community.developer.atlassian.com/t/media-not-getting-rendered-using-atlaskit-renderer/56360 "2025-03-21T08:55:57Z")

</div>

Hi there, I am using Renderer from @atlaskit to display content from a confluence space in my react app using the adf data I receive via Confluence rest api. Here is the code for my renderer: const DocComponent = Reac…

---

## [Access external links data from api](https://community.developer.atlassian.com/t/access-external-links-data-from-api/88153)

<div class="topic-metadata">

**Author:** [@Abhi](https://community.developer.atlassian.com/u/Abhi)\
**Replies:** 0\
**Last updated:** [January 24, 2025, 11:51am UTC](https://community.developer.atlassian.com/t/access-external-links-data-from-api/88153 "2025-01-24T11:51:27Z")

</div>

Hi community, I want to access confluence page data (as an external links) without using cookies or session token as they expire during a certain amount of time. We can create external links for our pages right. These …

---

## [Jira date picker javascript format](https://community.developer.atlassian.com/t/jira-date-picker-javascript-format/85004)

<div class="topic-metadata">

**Author:** [@PauloAlves](https://community.developer.atlassian.com/u/PauloAlves)\
**Replies:** 2\
**Last updated:** [October 7, 2024, 2:11pm UTC](https://community.developer.atlassian.com/t/jira-date-picker-javascript-format/85004 "2024-10-07T14:11:41Z")

</div>

Hello, I’m getting the following preferences in order to check the date format that date picker accepts. /rest/api/3/mypreferences?key=jira.date.picker.javascript.format The current response: %e/%b/%y Does anyone kno…

---

## [JavaScript scripts Jira and Confluence cloud](https://community.developer.atlassian.com/t/javascript-scripts-jira-and-confluence-cloud/83330)

<div class="topic-metadata">

**Author:** [@JordiRomeraAguila](https://community.developer.atlassian.com/u/JordiRomeraAguila)\
**Replies:** 0\
**Last updated:** [September 9, 2024, 5:47pm UTC](https://community.developer.atlassian.com/t/javascript-scripts-jira-and-confluence-cloud/83330 "2024-09-09T17:47:42Z")

</div>

Hello! I am an Atlassian Certified Expert and I am starting to learn JavaScript. Could anyone share with me any useful script for Jira and Confluence Cloud? Thank you very much!

---

## [Remove labels selected values using js in edit/create screens in Jira](https://community.developer.atlassian.com/t/remove-labels-selected-values-using-js-in-edit-create-screens-in-jira/82252)

<div class="topic-metadata">

**Author:** [@IbrahimItani](https://community.developer.atlassian.com/u/IbrahimItani)\
**Replies:** 0\
**Last updated:** [August 1, 2024, 6:21am UTC](https://community.developer.atlassian.com/t/remove-labels-selected-values-using-js-in-edit-create-screens-in-jira/82252 "2024-08-01T06:21:20Z")

</div>

Hello I have custom field of type Labels in jira on edi/create screen, I want to remove its selected values using javascript. Is there any special atlassian trigger events that does that? Thanks

---

## [401 Unauthorized Error for some Endpoints from Connect with atlassian-jwt](https://community.developer.atlassian.com/t/401-unauthorized-error-for-some-endpoints-from-connect-with-atlassian-jwt/82034)

<div class="topic-metadata">

**Author:** [@NiklasSchloegel](https://community.developer.atlassian.com/u/NiklasSchloegel)\
**Replies:** 2\
**Last updated:** [August 1, 2024, 4:53am UTC](https://community.developer.atlassian.com/t/401-unauthorized-error-for-some-endpoints-from-connect-with-atlassian-jwt/82034 "2024-08-01T04:53:31Z")

</div>

Hi there, I do want to execute requests to the Jira Cloud REST API from a Node JS server environment on behalf of a Connect app. For that I am creating a symmetric JWT token with a shared secret per instance as describe…

---

## [Issue where the height of an iframe in a Confluence app continuously expands infinitely when the html and body elements are set to 100% height, causing layout problems](https://community.developer.atlassian.com/t/issue-where-the-height-of-an-iframe-in-a-confluence-app-continuously-expands-infinitely-when-the-html-and-body-elements-are-set-to-100-height-causing-layout-problems/81963)

<div class="topic-metadata">

**Author:** [@SalMourad](https://community.developer.atlassian.com/u/SalMourad)\
**Replies:** 0\
**Last updated:** [July 19, 2024, 8:12pm UTC](https://community.developer.atlassian.com/t/issue-where-the-height-of-an-iframe-in-a-confluence-app-continuously-expands-infinitely-when-the-html-and-body-elements-are-set-to-100-height-causing-layout-problems/81963 "2024-07-19T20:12:27Z")

</div>

Issue Overview: We’re encountering a persistent problem with our Confluence app where the iframe height continuously expands indefinitely. This issue arises when we set the html and body elements to 100% height in our C…

---

## [(ScriptRunner) Closing a diaglog2 box after sending data](https://community.developer.atlassian.com/t/scriptrunner-closing-a-diaglog2-box-after-sending-data/56344)

<div class="topic-metadata">

**Author:** [@AlphonsAnyoka](https://community.developer.atlassian.com/u/AlphonsAnyoka)\
**Replies:** 1\
**Last updated:** [July 19, 2024, 8:24am UTC](https://community.developer.atlassian.com/t/scriptrunner-closing-a-diaglog2-box-after-sending-data/56344 "2024-07-19T08:24:17Z")

</div>

I am trying to create a Confluence page from Jira. I am very new to HTML and Javascript. And Atlassian’s AUI documentation isn’t the best, and I cant really find any documentation on AJS. So I’m really struggling with t…

---

## [Connect app jiraIssueContexts icon url is treated as absolute always](https://community.developer.atlassian.com/t/connect-app-jiraissuecontexts-icon-url-is-treated-as-absolute-always/80797)

<div class="topic-metadata">

**Author:** [@OndejMedek](https://community.developer.atlassian.com/u/OndejMedek)\
**Replies:** 0\
**Last updated:** [June 12, 2024, 11:43am UTC](https://community.developer.atlassian.com/t/connect-app-jiraissuecontexts-icon-url-is-treated-as-absolute-always/80797 "2024-06-12T11:43:34Z")

</div>

I have migrated our Connect app from webPanels to jiraIssueContexts. It works fine just our icon is displayed as missing if the app is not deployed in the sever root directory. E.g. we have in our atlassian-connect.json …

---

## [Backend variable is not persistent](https://community.developer.atlassian.com/t/backend-variable-is-not-persistent/80350)

<div class="topic-metadata">

**Author:** [@Nowak](https://community.developer.atlassian.com/u/Nowak)\
**Replies:** 1\
**Last updated:** [May 28, 2024, 9:26am UTC](https://community.developer.atlassian.com/t/backend-variable-is-not-persistent/80350 "2024-05-28T09:26:59Z")

</div>

I store a variable in my backend defined file: const USER\_CACHE = new Map(); but every request, the map is getting initialized again. Why is that? The expected behaviour would be that it doesn’t get initialized again …

---

## ["issuetype":"The issue type selected is invalid."](https://community.developer.atlassian.com/t/issuetype-the-issue-type-selected-is-invalid/65007)

<div class="topic-metadata">

**Author:** [@RahimTS](https://community.developer.atlassian.com/u/RahimTS)\
**Replies:** 1\
**Last updated:** [May 23, 2024, 8:04am UTC](https://community.developer.atlassian.com/t/issuetype-the-issue-type-selected-is-invalid/65007 "2024-05-23T08:04:34Z")

</div>

I’m trying to create an issue with jira-client - npm for that I created a code snippet based on what a bare minimum body should be which I got from https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-i…

---

## [Listening to Jira events using javascript API](https://community.developer.atlassian.com/t/listening-to-jira-events-using-javascript-api/24414)

<div class="topic-metadata">

**Author:** [@vitaliy.ananiev](https://community.developer.atlassian.com/u/vitaliy.ananiev)\
**Replies:** 13\
**Last updated:** [April 12, 2024, 12:01pm UTC](https://community.developer.atlassian.com/t/listening-to-jira-events-using-javascript-api/24414 "2024-04-12T12:01:30Z")

</div>

Hi, I’m developing an add-on for jira cloud and need it to listen to some basic events like issue status change, comment added/edited/deleted . The problem is I can’t find any documentation on such events, could someone…

---

## [What is the context to load web resources on transition screens?](https://community.developer.atlassian.com/t/what-is-the-context-to-load-web-resources-on-transition-screens/78909)

<div class="topic-metadata">

**Author:** [@Radwan1](https://community.developer.atlassian.com/u/Radwan1)\
**Replies:** 0\
**Last updated:** [April 5, 2024, 3:40pm UTC](https://community.developer.atlassian.com/t/what-is-the-context-to-load-web-resources-on-transition-screens/78909 "2024-04-05T15:40:51Z")

</div>

Hello, I am trying to load a web resource in a workflow transition screen. I however couldn’t find the specific context here: https://developer.atlassian.com/server/jira/platform/web-resource/#WebResourcePluginModule-W…

---

## [Jira description field shows value only in Text mode and not in Visual mode](https://community.developer.atlassian.com/t/jira-description-field-shows-value-only-in-text-mode-and-not-in-visual-mode/75689)

<div class="topic-metadata">

**Author:** [@anon21022286](https://community.developer.atlassian.com/u/anon21022286)\
**Replies:** 9\
**Last updated:** [January 29, 2024, 7:05pm UTC](https://community.developer.atlassian.com/t/jira-description-field-shows-value-only-in-text-mode-and-not-in-visual-mode/75689 "2024-01-29T19:05:13Z")

</div>

Hi Team, We are trying to set the value of the description field using JavaScript code: document.getElementById(“description”).value = response; where response consist of plain text value. We are able to see the respo…

---

## [Rest api with node](https://community.developer.atlassian.com/t/rest-api-with-node/75877)

<div class="topic-metadata">

**Author:** [@idanfarbman](https://community.developer.atlassian.com/u/idanfarbman)\
**Replies:** 1\
**Last updated:** [January 1, 2024, 11:51pm UTC](https://community.developer.atlassian.com/t/rest-api-with-node/75877 "2024-01-01T23:51:03Z")

</div>

i want to use this rest api : in what do i need to replace the header section ? fetch('https://your-domain.atlassian.net/rest/api/3/project/search', { method: 'GET', headers: { 'Authorization': \`Basic ${Buffer.…

---

## [Set a value for a custom field of type Select List (single choice)](https://community.developer.atlassian.com/t/set-a-value-for-a-custom-field-of-type-select-list-single-choice/75758)

<div class="topic-metadata">

**Author:** [@ronshenk](https://community.developer.atlassian.com/u/ronshenk)\
**Replies:** 0\
**Last updated:** [December 24, 2023, 5:02am UTC](https://community.developer.atlassian.com/t/set-a-value-for-a-custom-field-of-type-select-list-single-choice/75758 "2023-12-24T05:02:53Z")

</div>

Hello ! I’m trying to set a value for a custom field i’ve added to the create issue screen using AJS object the custom field is of type : “Select List (single choice)” to set the value i’m using the below commend (100…

---

## [Js file not read in .vm file](https://community.developer.atlassian.com/t/js-file-not-read-in-vm-file/75494)

<div class="topic-metadata">

**Author:** [@AliRahhal](https://community.developer.atlassian.com/u/AliRahhal)\
**Replies:** 0\
**Last updated:** [December 14, 2023, 2:40pm UTC](https://community.developer.atlassian.com/t/js-file-not-read-in-vm-file/75494 "2023-12-14T14:40:59Z")

</div>

Hello everyone, I did this configuration in my atlassian-plugins \<web-resource key="mfj-qr-code-generator-resource" name="QR Code Resource"\> \<dependency\>com.atlassian.auiplugin:ajs\</dependency\> \<depende…

---

## [How can I incorporate a d3.js chart into my jira plugin that uses soy templates?](https://community.developer.atlassian.com/t/how-can-i-incorporate-a-d3-js-chart-into-my-jira-plugin-that-uses-soy-templates/74498)

<div class="topic-metadata">

**Author:** [@FionaBeveridge](https://community.developer.atlassian.com/u/FionaBeveridge)\
**Replies:** 0\
**Last updated:** [November 7, 2023, 5:35pm UTC](https://community.developer.atlassian.com/t/how-can-i-incorporate-a-d3-js-chart-into-my-jira-plugin-that-uses-soy-templates/74498 "2023-11-07T17:35:47Z")

</div>

I currently have a working jira add-on that displays ticket metadata using a soy template. I am trying to incorporate an interactive d3.js chart into this but cannot find a way that works. When adding the d3 code straigh…

---

## [Jira tutorials on AMDs and new API?](https://community.developer.atlassian.com/t/jira-tutorials-on-amds-and-new-api/74490)

<div class="topic-metadata">

**Author:** [@aragot](https://community.developer.atlassian.com/u/aragot)\
**Replies:** 1\
**Last updated:** [November 7, 2023, 3:04pm UTC](https://community.developer.atlassian.com/t/jira-tutorials-on-amds-and-new-api/74490 "2023-11-07T15:04:59Z")

</div>

Hi team, A page from 2020 / Jira 7.7 says that the Jira team plans to abandon globally-exposed JS methods, whether it be $, AJS or JIRA, and plugins will have to use require() with the correct import name. Two problems …

---

## [Troubleshooting Jira Cloud App Integration: Buttons and Panel Display Issues](https://community.developer.atlassian.com/t/troubleshooting-jira-cloud-app-integration-buttons-and-panel-display-issues/74435)

<div class="topic-metadata">

**Author:** [@JuanRomo](https://community.developer.atlassian.com/u/JuanRomo)\
**Replies:** 0\
**Last updated:** [November 6, 2023, 9:56am UTC](https://community.developer.atlassian.com/t/troubleshooting-jira-cloud-app-integration-buttons-and-panel-display-issues/74435 "2023-11-06T09:56:19Z")

</div>

I was trying to build an app on Jira Cloud. What I want to do is to display some buttons to have a quick access to other links on an issue of a Jira Project. I did manage to install my app and I can see the panel I creat…

---

## [Form with createableselect does not show new element](https://community.developer.atlassian.com/t/form-with-createableselect-does-not-show-new-element/71581)

<div class="topic-metadata">

**Author:** [@Qeychon](https://community.developer.atlassian.com/u/Qeychon)\
**Replies:** 1\
**Last updated:** [October 10, 2023, 6:06am UTC](https://community.developer.atlassian.com/t/form-with-createableselect-does-not-show-new-element/71581 "2023-10-10T06:06:12Z")

</div>

I implement a form and I use the atlaskit. The form is implement follow: function App() { const \[selection, setSelection\] = useState({ domain: undefined, boundedContext: undefined, aggregate:…

---

## [Jira Cloud - REST API - Transitions](https://community.developer.atlassian.com/t/jira-cloud-rest-api-transitions/73400)

<div class="topic-metadata">

**Author:** [@KevinGroundwater](https://community.developer.atlassian.com/u/KevinGroundwater)\
**Replies:** 9\
**Last updated:** [October 3, 2023, 3:18am UTC](https://community.developer.atlassian.com/t/jira-cloud-rest-api-transitions/73400 "2023-10-03T03:18:56Z")

</div>

Context - I have been working on a small locally hosted browser app using JavaScript to parse reporting we receive on a daily basis and upload specific data fields to our tickets via the API. Currently using the followi…

---

## [Forge Custom UI App -\> How to use Unirest Client?](https://community.developer.atlassian.com/t/forge-custom-ui-app-how-to-use-unirest-client/72556)

<div class="topic-metadata">

**Author:** [@MohanRaj](https://community.developer.atlassian.com/u/MohanRaj)\
**Replies:** 0\
**Last updated:** [September 4, 2023, 10:07am UTC](https://community.developer.atlassian.com/t/forge-custom-ui-app-how-to-use-unirest-client/72556 "2023-09-04T10:07:55Z")

</div>

Hi all, For Forge Custom UI, we are using the forge fetch for the accessing the Rest API’s but i want to use Unirest instead of fetch. Is that possible to use Unirest client in our forge app? The requirement is to use …

---

## [Why is my data turning back into a promise?](https://community.developer.atlassian.com/t/why-is-my-data-turning-back-into-a-promise/72310)

<div class="topic-metadata">

**Author:** [@SharonGilmore](https://community.developer.atlassian.com/u/SharonGilmore)\
**Replies:** 2\
**Last updated:** [August 30, 2023, 11:45am UTC](https://community.developer.atlassian.com/t/why-is-my-data-turning-back-into-a-promise/72310 "2023-08-30T11:45:48Z")

</div>

I’m using requestConfluence in my Custom UI app to convert an array of user ids to names. I have the following: const getNames = (ids) =\> { const namesList = ids.map(async (id) =\> { const profile = await requ…

---

## [Using Azure OpenAI JavaScript Client Library](https://community.developer.atlassian.com/t/using-azure-openai-javascript-client-library/71532)

<div class="topic-metadata">

**Author:** [@axldpir](https://community.developer.atlassian.com/u/axldpir)\
**Replies:** 2\
**Last updated:** [August 21, 2023, 7:21am UTC](https://community.developer.atlassian.com/t/using-azure-openai-javascript-client-library/71532 "2023-08-21T07:21:35Z")

</div>

Hi, I tried to use Azure OpenAI JavaScript Client Library (Azure OpenAI client library for JavaScript | Microsoft Learn) on Forge but this library uses some Node.js modules like net and tty that are not supported by For…

---

## [Getting error as "refresh\_token is invalid" when trying to renew the access\_token after 1hr expiry](https://community.developer.atlassian.com/t/getting-error-as-refresh-token-is-invalid-when-trying-to-renew-the-access-token-after-1hr-expiry/61553)

<div class="topic-metadata">

**Author:** [@tejparekh2402](https://community.developer.atlassian.com/u/tejparekh2402)\
**Replies:** 2\
**Last updated:** [August 8, 2023, 5:25pm UTC](https://community.developer.atlassian.com/t/getting-error-as-refresh-token-is-invalid-when-trying-to-renew-the-access-token-after-1hr-expiry/61553 "2023-08-08T17:25:35Z")

</div>

I am using the Cloud REST Apis. I have created OAuth App in the developer console. I acquire the access token using the grant\_type = authorization\_code method Scope = ‘read:jira-user read:jira-work write:jira-work read…

---

## [Where do I place these configuration values? (module.exports)](https://community.developer.atlassian.com/t/where-do-i-place-these-configuration-values-module-exports/71731)

<div class="topic-metadata">

**Author:** [@JaySoren](https://community.developer.atlassian.com/u/JaySoren)\
**Replies:** 2\
**Last updated:** [August 8, 2023, 1:01am UTC](https://community.developer.atlassian.com/t/where-do-i-place-these-configuration-values-module-exports/71731 "2023-08-08T01:01:33Z")

</div>

Hi, I am following the get started guide here: https://atlassian.design/get-started/develop/#get-help I understand everything up until this bit of code: module.exports = { plugins: \[ '@atlaskit/design-system', …

---

## [How to insert Google API script - Jira Cloud - Forge - React](https://community.developer.atlassian.com/t/how-to-insert-google-api-script-jira-cloud-forge-react/68880)

<div class="topic-metadata">

**Author:** [@splinterface](https://community.developer.atlassian.com/u/splinterface)\
**Replies:** 2\
**Last updated:** [May 23, 2023, 1:34am UTC](https://community.developer.atlassian.com/t/how-to-insert-google-api-script-jira-cloud-forge-react/68880 "2023-05-23T01:34:43Z")

</div>

Greetings, To use Google places API on CREATE and EDIT screens in Jira Cloud, I need to insert a script onto the page - as per Google Guidelines: The Places service is a self-contained library, separate from the main …

---

## [New items added to the rich text editor only loads if initial load state is in visual mode](https://community.developer.atlassian.com/t/new-items-added-to-the-rich-text-editor-only-loads-if-initial-load-state-is-in-visual-mode/34059)

<div class="topic-metadata">

**Author:** [@joyce.kristine](https://community.developer.atlassian.com/u/joyce.kristine)\
**Replies:** 1\
**Last updated:** [July 14, 2023, 4:51pm UTC](https://community.developer.atlassian.com/t/new-items-added-to-the-rich-text-editor-only-loads-if-initial-load-state-is-in-visual-mode/34059 "2023-07-14T16:51:04Z")

</div>

I’m extending the RTE by adding some new macros as menu sub items here: I used this tutorial as basis to code my js file: Extending the rich text editor in JIRA The current behavior: If I load it with the tab initi…

[Next page](https://community.developer.atlassian.com/tag/javascript/57.md?match_all_tags=true&page=1&tags%5B%5D=javascript)
