Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira Widget in NextJS not visible

Marcos Magno
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 4, 2024

I am using NextJS and Next script to load Jira's wdiget script, however the script is loaded but not shown on the pages.


 

          <Script
            data-jsd-embedded
            data-key="key"
            data-base-url="https://jsd-widget.atlassian.com"
            onError={(e) => console.error(e)}
            onReady={() => console.log('ready')}
          />

2 answers

1 vote
Nicolas Van Damme
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 1, 2025

A (janky) way to fix this is to add the following to the onLoad callback:

 

if (document.readyState !== 'loading') {
document.dispatchEvent(new Event('DOMContentLoaded'));
}
0 votes
Jef Braem
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 1, 2025

Hey Marcos, did you find a solution for this? We are facing the same issue, and have not found a solution yet.

It seems like the limitation is that the Jira Widget expects to be available when the DOM content load event is fired.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events