# \#javascript-api

**URL:** https://community.developer.atlassian.com/tag/javascript-api/702.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)

---

## [Introducing "atlassian-forge-axios" – Axios-like HTTP client for Atlassian Forge](https://community.developer.atlassian.com/t/introducing-atlassian-forge-axios-axios-like-http-client-for-atlassian-forge/98587)

<div class="topic-metadata">

**Author:** [@NAGARAJS](https://community.developer.atlassian.com/u/NAGARAJS)\
**Replies:** 0\
**Last updated:** [January 22, 2026, 8:07pm UTC](https://community.developer.atlassian.com/t/introducing-atlassian-forge-axios-axios-like-http-client-for-atlassian-forge/98587 "2026-01-22T20:07:27Z")

</div>

Hi everyone :waving\_hand: I’ve just released a small open-source utility for the Forge ecosystem called atlassian-forge-axios. While building Forge apps, I noticed that working directly with @forge/api often leads to r…

---

## [Outage: Confluence Javascript API AP.confluence.getContentProperty failing with nested 410 GONE](https://community.developer.atlassian.com/t/outage-confluence-javascript-api-ap-confluence-getcontentproperty-failing-with-nested-410-gone/95729)

<div class="topic-metadata">

**Author:** [@Chris\_at\_DigitalRose](https://community.developer.atlassian.com/u/Chris_at_DigitalRose)\
**Replies:** 4\
**Last updated:** [October 1, 2025, 4:30am UTC](https://community.developer.atlassian.com/t/outage-confluence-javascript-api-ap-confluence-getcontentproperty-failing-with-nested-410-gone/95729 "2025-10-01T04:30:31Z")

</div>

FYI community: this time it is the Confluence AP.confluence.getContentProperty API that is GONE. This front end API is down and raising a popup and nested network rest api call it makes shows a 410 gone. Confluence is …

---

## [Javascript event on updating release?](https://community.developer.atlassian.com/t/javascript-event-on-updating-release/94280)

<div class="topic-metadata">

**Author:** [@ReinhardMayr](https://community.developer.atlassian.com/u/ReinhardMayr)\
**Replies:** 0\
**Last updated:** [August 1, 2025, 7:05pm UTC](https://community.developer.atlassian.com/t/javascript-event-on-updating-release/94280 "2025-08-01T19:05:00Z")

</div>

Hi, I would like to trigger some JS-code once a release in a jira project has been edited. Can anyone please point me in the right direction where/how to find a suitable JS-event? Thanks in advance! Reinhard

---

## [Token absolute expiry are still needed?](https://community.developer.atlassian.com/t/token-absolute-expiry-are-still-needed/67963)

<div class="topic-metadata">

**Author:** [@gomezf91](https://community.developer.atlassian.com/u/gomezf91)\
**Replies:** 3\
**Last updated:** [April 11, 2025, 9:50pm UTC](https://community.developer.atlassian.com/t/token-absolute-expiry-are-still-needed/67963 "2025-04-11T21:50:35Z")

</div>

Hi everyone, I have an OAuth 2.0 implementation but I was asked to work in the re-connect when the absolute token expiry time happens. But I read in the last comment in the announcement post that is no longer required t…

---

## [Support to forge custom fields on Connect JavaScript API - openCreateIssueDialog](https://community.developer.atlassian.com/t/support-to-forge-custom-fields-on-connect-javascript-api-opencreateissuedialog/84885)

<div class="topic-metadata">

**Author:** [@PauloAlves](https://community.developer.atlassian.com/u/PauloAlves)\
**Replies:** 1\
**Last updated:** [October 10, 2024, 8:37am UTC](https://community.developer.atlassian.com/t/support-to-forge-custom-fields-on-connect-javascript-api-opencreateissuedialog/84885 "2024-10-10T08:37:08Z")

</div>

Hello, I’m trying to use the function: openCreateIssueDialog from the Connect JavaScript API: https://developer.atlassian.com/cloud/jira/platform/jsapi/jira/ I noticed that some custom fields controlled by another app …

---

## [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…

---

## [AP.navigator.getLocation and query param page.id might point to wrong contentId](https://community.developer.atlassian.com/t/ap-navigator-getlocation-and-query-param-page-id-might-point-to-wrong-contentid/55113)

<div class="topic-metadata">

**Author:** [@andreas1](https://community.developer.atlassian.com/u/andreas1)\
**Replies:** 10\
**Last updated:** [July 18, 2024, 7:32pm UTC](https://community.developer.atlassian.com/t/ap-navigator-getlocation-and-query-param-page-id-might-point-to-wrong-contentid/55113 "2024-07-18T19:32:58Z")

</div>

Dear community, I just found out that AP.navigator.getLocation and the query param page.id might refer to the page visited before (not the current one) under the following conditions: The current page is the home page…

---

## [Max size of macro body returned by AP.confluence.getMacroBody()](https://community.developer.atlassian.com/t/max-size-of-macro-body-returned-by-ap-confluence-getmacrobody/80298)

<div class="topic-metadata">

**Author:** [@scottohara](https://community.developer.atlassian.com/u/scottohara)\
**Replies:** 1\
**Last updated:** [June 12, 2024, 4:18am UTC](https://community.developer.atlassian.com/t/max-size-of-macro-body-returned-by-ap-confluence-getmacrobody/80298 "2024-06-12T04:18:11Z")

</div>

We have a Connect app that is a dynamic content macro (with a plain text body type, if that matters). Users can supply content needed by the macro either in the macro body, or by specifying a URL to fetch the content fr…

---

## [Jira java api search returns issue keys instead of issues](https://community.developer.atlassian.com/t/jira-java-api-search-returns-issue-keys-instead-of-issues/79765)

<div class="topic-metadata">

**Author:** [@IbrahimItani](https://community.developer.atlassian.com/u/IbrahimItani)\
**Replies:** 0\
**Last updated:** [May 7, 2024, 2:02pm UTC](https://community.developer.atlassian.com/t/jira-java-api-search-returns-issue-keys-instead-of-issues/79765 "2024-05-07T14:02:33Z")

</div>

Hello There is method in Jira searchService.search(user, query, pageFilter) that retruns list of SearchResults of Issues, however for performance issues, I’m only interested in getting issue keys , any idea how to do th…

---

## [Is it possible to catch the worklog update event in the Issue Context module?](https://community.developer.atlassian.com/t/is-it-possible-to-catch-the-worklog-update-event-in-the-issue-context-module/79388)

<div class="topic-metadata">

**Author:** [@JuliaJanky](https://community.developer.atlassian.com/u/JuliaJanky)\
**Replies:** 0\
**Last updated:** [April 24, 2024, 8:02am UTC](https://community.developer.atlassian.com/t/is-it-possible-to-catch-the-worklog-update-event-in-the-issue-context-module/79388 "2024-04-24T08:02:27Z")

</div>

Hello, we have a plugin where we want to display work log data (like logged time, remaining estimate …) in the Issue Context module. We want to update the data if the user is using the default time tracking provider in …

---

## [Open issue transition dialog via Connect JavaScript API](https://community.developer.atlassian.com/t/open-issue-transition-dialog-via-connect-javascript-api/75488)

<div class="topic-metadata">

**Author:** [@yurikudin](https://community.developer.atlassian.com/u/yurikudin)\
**Replies:** 3\
**Last updated:** [April 3, 2024, 1:58pm UTC](https://community.developer.atlassian.com/t/open-issue-transition-dialog-via-connect-javascript-api/75488 "2024-04-03T13:58:45Z")

</div>

Hi all, In our application, we need to transition issues, and quite often, the transition can’t be done as the Transition post-functions require some custom fields to be filled. In Jira, this problem is solved by showi…

---

## [JIRA.Events.NEW\_CONTENT\_ADDED not working correctly on agile board](https://community.developer.atlassian.com/t/jira-events-new-content-added-not-working-correctly-on-agile-board/56811)

<div class="topic-metadata">

**Author:** [@OrenZehavi](https://community.developer.atlassian.com/u/OrenZehavi)\
**Replies:** 2\
**Last updated:** [March 21, 2024, 12:38pm UTC](https://community.developer.atlassian.com/t/jira-events-new-content-added-not-working-correctly-on-agile-board/56811 "2024-03-21T12:38:22Z")

</div>

Hey, I am using the following code in my Jira plugin for the issue view: JIRA.bind(JIRA.Events.NEW\_CONTENT\_ADDED, function (e, context, reason) { console.log("NEW\_CONTENT\_ADDED - "+reason); if(context.length \> 0) c…

---

## [Configuration fields in JIRA gadget](https://community.developer.atlassian.com/t/configuration-fields-in-jira-gadget/77139)

<div class="topic-metadata">

**Author:** [@tuqopokuh-4885](https://community.developer.atlassian.com/u/tuqopokuh-4885)\
**Replies:** 0\
**Last updated:** [February 9, 2024, 2:10pm UTC](https://community.developer.atlassian.com/t/configuration-fields-in-jira-gadget/77139 "2024-02-09T14:10:52Z")

</div>

I’m trying to create a JIRA gadget and I need long text field (not textarea) on configuration screen. If I set class “long-field”, test field has only class “text” anaway. I don’t understand why. May be it’s possible bin…

---

## [Missing functions on AP object](https://community.developer.atlassian.com/t/missing-functions-on-ap-object/56876)

<div class="topic-metadata">

**Author:** [@JeffreyBindinga](https://community.developer.atlassian.com/u/JeffreyBindinga)\
**Replies:** 7\
**Last updated:** [February 3, 2024, 9:34pm UTC](https://community.developer.atlassian.com/t/missing-functions-on-ap-object/56876 "2024-02-03T21:34:43Z")

</div>

I’m running into issues with Atlassian Connect, using the javascript API. I have a descriptor with a simple webitem { "name": "Create Branch", "description": "Adds a button to issue tools to create a branch", "ke…

---

## [On click of web item call javascript function in jira cloud](https://community.developer.atlassian.com/t/on-click-of-web-item-call-javascript-function-in-jira-cloud/33845)

<div class="topic-metadata">

**Author:** [@SarikaDalal](https://community.developer.atlassian.com/u/SarikaDalal)\
**Replies:** 10\
**Last updated:** [February 2, 2024, 11:44am UTC](https://community.developer.atlassian.com/t/on-click-of-web-item-call-javascript-function-in-jira-cloud/33845 "2024-02-02T11:44:57Z")

</div>

Hi Team, I am creating a Jira plugin for cloud and i want to call a javascript function on click of web item. How can I do this. I am new with cloud plugin development. any Idea on this.

---

## [Get Scroll Position in Forge App](https://community.developer.atlassian.com/t/get-scroll-position-in-forge-app/57684)

<div class="topic-metadata">

**Author:** [@GeorgSchmidlLA](https://community.developer.atlassian.com/u/GeorgSchmidlLA)\
**Replies:** 1\
**Last updated:** [January 25, 2024, 2:52pm UTC](https://community.developer.atlassian.com/t/get-scroll-position-in-forge-app/57684 "2024-01-25T14:52:10Z")

</div>

Hi there, does anybody know how to get the vertical offset position in a Forge page? In Connect there is an API for that: Scroll position but I can’t seem to find a Forge equivalent. Georg

---

## [A day in the life of a Marketplace Partner - Part II](https://community.developer.atlassian.com/t/a-day-in-the-life-of-a-marketplace-partner-part-ii/76010)

<div class="topic-metadata">

**Author:** [@remie](https://community.developer.atlassian.com/u/remie)\
**Replies:** 2\
**Last updated:** [January 9, 2024, 4:34pm UTC](https://community.developer.atlassian.com/t/a-day-in-the-life-of-a-marketplace-partner-part-ii/76010 "2024-01-09T16:34:37Z")

</div>

:wave: Hello Marketplace Developer community! Welcome back for the second instalment of A Day in The Life of a Marketplace Partner! I have to shamefully admit that there have been a staggering 311 days between posts in…

---

## [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…

---

## [I am recieving a 500 "File name cannot be null or empty" error on the CreateAttachment API](https://community.developer.atlassian.com/t/i-am-recieving-a-500-file-name-cannot-be-null-or-empty-error-on-the-createattachment-api/54436)

<div class="topic-metadata">

**Author:** [@HARSHITTOMAR](https://community.developer.atlassian.com/u/HARSHITTOMAR)\
**Replies:** 1\
**Last updated:** [December 11, 2023, 2:10am UTC](https://community.developer.atlassian.com/t/i-am-recieving-a-500-file-name-cannot-be-null-or-empty-error-on-the-createattachment-api/54436 "2023-12-11T02:10:32Z")

</div>

I am trying to upload some attachments to a confluence wiki page through the create attachment API. I am using this javascript rest api as a test but keep getting an error after following all examples I can find on it: …

---

## [Table of content Macro inside Dynamic content macro iFrame produces CORS error](https://community.developer.atlassian.com/t/table-of-content-macro-inside-dynamic-content-macro-iframe-produces-cors-error/55402)

<div class="topic-metadata">

**Author:** [@BenjaminCJohn](https://community.developer.atlassian.com/u/BenjaminCJohn)\
**Replies:** 2\
**Last updated:** [October 19, 2023, 11:00am UTC](https://community.developer.atlassian.com/t/table-of-content-macro-inside-dynamic-content-macro-iframe-produces-cors-error/55402 "2023-10-19T11:00:39Z")

</div>

Hi Community, when we add the table of content macro inside one of our macros (dynamic content macro, rendered inside an iframe), it produces a CORS issue. It tries to load the editor content via an ajax call, but witho…

---

## [AP.dialog property "size" side effects](https://community.developer.atlassian.com/t/ap-dialog-property-size-side-effects/36745)

<div class="topic-metadata">

**Author:** [@JakubChatrn](https://community.developer.atlassian.com/u/JakubChatrn)\
**Replies:** 1\
**Last updated:** [October 9, 2023, 9:20am UTC](https://community.developer.atlassian.com/t/ap-dialog-property-size-side-effects/36745 "2023-10-09T09:20:53Z")

</div>

Hello, I’ve noticed weird behavior of AP.dialog “size: fullscreen” property. If you set it, It also set’s chrome: true. I haven’t found any info about this behavior in docs so I guess It might be bug. Example: functi…

---

## [Not able to get current logged in user account id](https://community.developer.atlassian.com/t/not-able-to-get-current-logged-in-user-account-id/56659)

<div class="topic-metadata">

**Author:** [@MikeDev](https://community.developer.atlassian.com/u/MikeDev)\
**Replies:** 3\
**Last updated:** [September 14, 2023, 2:05am UTC](https://community.developer.atlassian.com/t/not-able-to-get-current-logged-in-user-account-id/56659 "2023-09-14T02:05:57Z")

</div>

Hello, I need current logged in user account id. So, I tried to call REST API “/rest/api/3/myself” to get current user from my connect application (written in asp.net core) for authentication I created JWT and it has fo…

---

## [Unable to DELETE space permissions through AP (error 403)](https://community.developer.atlassian.com/t/unable-to-delete-space-permissions-through-ap-error-403/53593)

<div class="topic-metadata">

**Author:** [@FirasMkaouar](https://community.developer.atlassian.com/u/FirasMkaouar)\
**Replies:** 3\
**Last updated:** [July 3, 2023, 12:11pm UTC](https://community.developer.atlassian.com/t/unable-to-delete-space-permissions-through-ap-error-403/53593 "2023-07-03T12:11:39Z")

</div>

Hi everyone! For one of our apps, we want to manage space permissions, we encountered the following issue when using the below endpoint, through AP : DELETE /wiki/rest/api/space/{spaceKey}/permission/{id} We are getti…

---

## [AP.Navigator.Go is adding ac. to query parameters](https://community.developer.atlassian.com/t/ap-navigator-go-is-adding-ac-to-query-parameters/70014)

<div class="topic-metadata">

**Author:** [@FarazShuja](https://community.developer.atlassian.com/u/FarazShuja)\
**Replies:** 1\
**Last updated:** [June 2, 2023, 1:25pm UTC](https://community.developer.atlassian.com/t/ap-navigator-go-is-adding-ac-to-query-parameters/70014 "2023-06-02T13:25:42Z")

</div>

I tried the code AP.navigator.go('addonModule', { addonKey, moduleKey: 'admin-page', customData: { s: 'net.abc.def.jira.connector\_\_admin-page' } }); But its a…

---

## [openCreateIssueDialog wiki rendering](https://community.developer.atlassian.com/t/opencreateissuedialog-wiki-rendering/69193)

<div class="topic-metadata">

**Author:** [@david.pinn](https://community.developer.atlassian.com/u/david.pinn)\
**Replies:** 0\
**Last updated:** [May 8, 2023, 4:41am UTC](https://community.developer.atlassian.com/t/opencreateissuedialog-wiki-rendering/69193 "2023-05-08T04:41:32Z")

</div>

When we use AC.Jira.openCreateIssueDialog our wiki-rendered custom field displays without actual wiki rendering. Is that a known problem?

---

## [Using Connect javascript API with npm/typescript](https://community.developer.atlassian.com/t/using-connect-javascript-api-with-npm-typescript/68785)

<div class="topic-metadata">

**Author:** [@opsb](https://community.developer.atlassian.com/u/opsb)\
**Replies:** 12\
**Last updated:** [April 29, 2023, 12:03am UTC](https://community.developer.atlassian.com/t/using-connect-javascript-api-with-npm-typescript/68785 "2023-04-29T00:03:10Z")

</div>

The Connect docs demonstrate how you can run the API using a script tag \<script src="https://connect-cdn.atl-paas.net/all.js"\>\</script\> I went looking for the library in npm and found atlassian-connect-js - npm but it …

---

## [AP.jira.openCreateIssueDialog - is it possible to create sub-task?](https://community.developer.atlassian.com/t/ap-jira-opencreateissuedialog-is-it-possible-to-create-sub-task/65339)

<div class="topic-metadata">

**Author:** [@ZbigniewPiecuch](https://community.developer.atlassian.com/u/ZbigniewPiecuch)\
**Replies:** 2\
**Last updated:** [January 21, 2023, 6:55pm UTC](https://community.developer.atlassian.com/t/ap-jira-opencreateissuedialog-is-it-possible-to-create-sub-task/65339 "2023-01-21T18:55:37Z")

</div>

As in subject: Is it possible to pass parameters to the create issue dialog function (type and parent issue id) so that create dialog will open that will create subtask for provided parent issue?

---

## [Calls to Connect JavaScript API (AP) often never response](https://community.developer.atlassian.com/t/calls-to-connect-javascript-api-ap-often-never-response/64385)

<div class="topic-metadata">

**Author:** [@becker](https://community.developer.atlassian.com/u/becker)\
**Replies:** 0\
**Last updated:** [December 16, 2022, 1:26pm UTC](https://community.developer.atlassian.com/t/calls-to-connect-javascript-api-ap-often-never-response/64385 "2022-12-16T13:26:56Z")

</div>

Hi, We recently introduced some metrics to evaluate our usage of Connect JavaScript API and noticed that our calls to AP fail in about 3% of cases. Let me explain what I mean under ‘fail’. JavaScript API is asynchronou…

---

## [Error 403 when trying to do Jira REST API POST request](https://community.developer.atlassian.com/t/error-403-when-trying-to-do-jira-rest-api-post-request/64270)

<div class="topic-metadata">

**Author:** [@KhanhHo](https://community.developer.atlassian.com/u/KhanhHo)\
**Replies:** 2\
**Last updated:** [December 13, 2022, 8:53am UTC](https://community.developer.atlassian.com/t/error-403-when-trying-to-do-jira-rest-api-post-request/64270 "2022-12-13T08:53:15Z")

</div>

Hello everyone, I have some problem with the Jira API and the POST request on the website. Here I am trying to do a POST request from my WordPress website with Basic Authorization \<button type="submit" onclick="postApi…

---

## [Power UP t.set('board', 'shared', k, v) always returns 409](https://community.developer.atlassian.com/t/power-up-t-set-board-shared-k-v-always-returns-409/60040)

<div class="topic-metadata">

**Author:** [@BrianScaturro](https://community.developer.atlassian.com/u/BrianScaturro)\
**Replies:** 23\
**Last updated:** [December 12, 2022, 7:43pm UTC](https://community.developer.atlassian.com/t/power-up-t-set-board-shared-k-v-always-returns-409/60040 "2022-12-12T19:43:18Z")

</div>

Browser affected: Chrome Third party cookies enabled: yes Extensions disabled: yes I have an odd scenario where calls to t.set('board', 'shared', obj) are consistently failing with a 409 response: This call to t.s…

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