I’m newbie in Atlassian and doing some hello world widgets for Jira Cloud. I stuck with silly things related to the Dashboard Item. The add-on gets installed but then it is not displayed in the available gadgets list on the Dashboard once I click Add gadget button.
This addon contains ‘generalPages’ element and it works as expected, but the second part with the Dashboard Item is not…
Could you please give me advice on what did I miss?
Thank you for the response!
Did you introduce any changes in the cloned project? And what version of the node.js do you have?
I see the following warnings in the console after node app.js command:
Registering add-on...
Failed to register with host 923c9b99-7308-335a-91bf-f375321b7614 (401)
Add-on not registered; no compatible hosts detected
Maybe I face this issue because I run the add-on on Linux…
No I didn’t and I don’t own the project That error is okay, you might be missing something in the config.json, but if you try to install it in you cloud sandbox then you can still run the add-on.
After you clone the files from atlassian-connect-jira-dashboard-item-example, how can you add into the Gadget list? is there commands or steps to follow? thank you!
Inside the app directory, run npm install to install the app’s dependencies
Still inside the app directory, run node app.js in your terminal to start the app
host your app locally thru ngrok. If your node app is running in 3000, then run ngrok http 3000
Once your ngrok is running, test in your browser if you’re able to access your descriptor by copying the https URL of the ngrok and pasting it on your browser. It should redirect you to your app descriptor URL
Copy the URL in your browser (e.g. https://ngrok/atlassian-connect.json)
In your jira cloud instance, enable the development mode by going to add-ons → Manage add-ons → Setup → Tick the development mode
Refresh your page if your not able to see an ‘install add-on’ link. If you can see this, then paste the descriptor there and that should install the app in your Jira sandbox
I got the exact same behavior - the add-on got installed but then it was not displayed in the available gadgets list on the Dashboard. In my case, the example included a remote condition, and remote conditions are no longer supported, so Jira silently ignored my dashboard item. I replaced the remote condition with “user_is_logged_in” and it worked. (see Does Jira Cloud no longer support callback-based conditions? - #2 by alan.parkinson)