Following instructions in "Guide - Building a dashboard item for a JIRA Connect add-on" I cloned the only one example (https://bitbucket.org/atlassianlabs/atlassian-connect-jira-dashboard-item-example/)
After installing the add-on, I did not found the example gadget into gadget directory list adding into a Dashboard.
My dashboard item is still not working; It currently shows, but it cannot save its configuration (yet).
To get the example to show my gadget in the list, running Node.js, I had to make the following changes:
1. Update the dependencies (package.json):
"dependencies": {
"atlassian-connect-express": "^3.0.0",
"body-parser": "^1.14.2",
"compression": "^1.6.0",
"cookie-parser": "^1.4.0",
"errorhandler": "^1.4.2",
"express": "^4.13.3",
"express-hbs": "*",
"morgan": "^1.6.1",
"ngrok": "2.2.10",
"sleep": "^5.1.1",
"sqlite3": "^4.0.2",
"static-expiry": ">=0.0.5"
}
2. Replaced the app.js with one that is coded for Express v4+:
3. Updated the config to use sequelize (config.json):
"store": {
"adapter": "sequelize",
"type": "memory"
}
4. Removed the condition portion in the descriptor (atlassian-connect.json); see updated definition:
"jiraDashboardItems": [
{
"key": "dashboard-item-key",
"name": {
"value": "Search Issue",
"i18n": "issues.in.project.i18n"
},
"description": {
"value": "Search for issues based on properties.",
"i18n": "issues.in.project.description.i18n"
},
"url": "/issues-in-project?dashboard={dashboard.id}&dashboardItem={dashboardItem.id}",
"thumbnailUrl": "/thumbnail.png",
"configurable": true
}
]
5. Add/update the script in the header (to avoid getting "AP not defined" exception):
<script src="//connect-cdn.atl-paas.net/all.js" async></script>
Do you still have the clone of the repository? The URL is broken and Atlassian is not responding.
Thanks,
Jerry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The links to the bitbucket repository are broken (including in the documentation). Do you have the new links?
Thanks
Jerry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Xavi,
Let me know if all that checks out and we'll go from there.
Cheers,
Branden
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.