Is Jira Connect dashboard item example working?

Xavi fernandez October 6, 2017

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.

 

4 answers

1 vote
Osmund Francis November 26, 2018

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+:

https://bitbucket.org/atlassian/atlassian-connect-demo-cacheable-iframes/src/771ca5a0a5d3a89074b75173f5ea17fa4ae8031f/app.js?at=master

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>
0 votes
Jerry Laster _Divim_ Inc__
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
October 31, 2023

Hi @Xavi fernandez 

Do you still have the clone of the repository? The URL is broken and Atlassian is not responding. 

Thanks,
Jerry

0 votes
Jerry Laster _Divim_ Inc__
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
October 30, 2023

Hi @somethingblue

The links to the bitbucket repository are broken (including in the documentation). Do you have the new links? 

Thanks

Jerry

0 votes
somethingblue
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 6, 2017

Hi Xavi,

  • Are you getting any error when you attempt to run node app.js?
  • Do you get a Local tunnel established message?
  • Do you see that it registered the add-on?
  • If you go to the localBaseUrl what message do you get back?

Let me know if all that checks out and we'll go from there.

Cheers,

Branden

Suggest an answer

Log in or Sign up to answer