Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

JIRA Gadget On Cloud

Jeremy Banks April 19, 2015

Hi,

I'm trying to create a new JIRA Gadget for my Cloud JIRA instance.

I've followed the tutorial here - https://developer.atlassian.com/jiradev/jira-platform/gadgets/tutorial-writing-gadgets-for-jira.  I then modified it to do what I want it to do on my local dev environment.

Now I'm trying to follow this https://developer.atlassian.com/static/connect/docs/latest/developing/cloud-installation.html to install it in to Marketplace so I can install it in to my cloud instance.

Does the gadget need to actually reside and run on an external website?  I assumed the gadget would be installed in to my instance, but the requirement for an SSL served atlassian-connect.json suggests otherwise.

Thanks

5 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Robert Massaioli _Atlassian_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 19, 2015

You do need to host Atlassian Connect addons yourself. However, if your plugin has no backend then you can use a service like firebase: https://www.firebase.com/

Otherwise you might want to use one of the other cloud hosting providers that best suit the requirements of your application.

0 votes
Xinzhi Jiang November 22, 2017

In addition, I run into an issue when trying to create HelloWorld plugin according to Tutorial.

But when I run atlas-run command, I see the following error:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 07:06 min
[INFO] Finished at: 2017-11-21T09:54:08+08:00
[INFO] Final Memory: 19M/267M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project jira-gadget-tutorial-plugin: Could not resolve dependencies for project com.atlassian.plugin.tutorial:jira-gadget-tutorial-plugin:atlassia
n-plugin:1.0-SNAPSHOT: The following artifacts could not be resolved: com.atlassian.jira:atlassian-jira:jar:7.2.0, com.atlassian.jira:jira-func-tests:jar:7.2.0: Could not find arti
fact com.atlassian.jira:atlassian-jira:jar:7.2.0 in atlassian-public (https://maven.atlassian.com/repository/public) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

In my pom.xml,  there are the following properties:

<properties>
    <jira.version>7.2.0</jira.version>
    <amps.version>6.2.11</amps.version>
</properties>

 I try to install a different version of SDK, and set jira.version to different value, such as 7.6.0, 7.1.0, but this issue still exists.

So how to fix this issue?

Any suggestion will be appreciated.

 

Thanks a lot

0 votes
Xinzhi Jiang November 22, 2017

Firstly, thanks Jeremy and Robert.

Now, we have a requirement to develop a Gadget on JIRA Cloud,

But I am a newer to it, so  I want to conform the following:

1) install Atlassian SDK

2) develop this gadget

3) finally install it to JIRA Cloud.

Robert Massaioli _Atlassian_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 22, 2017

1) install Atlassian SDK

The Atlassian Plugin SDK is only for Atlassian Server development. If you want to develop for Jira in Atlassian Cloud then you can follow the guides here: https://developer.atlassian.com/cloud/jira/platform/integrating-with-jira-cloud/

Also, the Atlassian Developer community is a great place to ask developer related questions: https://community.developer.atlassian.com/ 

Xinzhi Jiang November 22, 2017

Thanks Robert very much,

Maybe, I did not clear me yesterday.

Here, I describe our requirement: we are using JIRA Cloud for Silverpeak to manage Issues and Test Executions: https://silverpeak.atlassian.net. Now, we want to create a new gadget to calculate the quantity of Test Executions by status (pass, fail, wip, blocked and unexecuted) and show them on a Pie chart.  This gadget needs at least one parameter: ZQL Filter Query. QA Tester runs a Python script to add this gadget to JIRA Cloud dashboard.

This Tutorial lets me know how to create a gadget, so I install Atlassian Plugin SDK and take a try; However I fail to atlas-run command (please see my comments listed yesterday).

Today, I follow the guides:

https://developer.atlassian.com/cloud/jira/platform/getting-started/
https://developer.atlassian.com/cloud/jira/platform/build-a-jira-app-using-a-framework/

and successfully create "Greating" and "Hello Word" on navigation bar on my developing JIRA Cloud instance: https://xinzhijiang.atlassian.net

 I  find the following description:
https://developer.atlassian.com/cloud/jira/platform/extending-the-user-interface/

Dashboard items: allows apps to provide a gadget to display on Jira Cloud dashboards.

So far, I can't find any detailed guides for how to develop a gadget for JIRA Cloud instance.

Just you said, Atlassian Plugin SDK is only for Atlassian Server development, so, I get confused.

Robert, would you like to tell me where I can find the detailed guide to develop a gadget for JIRA Cloud instance.

Thanks a lot.

Robert Massaioli _Atlassian_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 22, 2017

Please ask this question again at: https://community.developer.atlassian.com instead.

0 votes
Jeremy Banks April 20, 2015

I'm trying to create a javascript/html/css only gadget but I'm struggling to find out what an atlassian-connect.json should look like for a gadget.

Any ideas?

Actually that's probably a question in its own right, I'll start a new thread.

0 votes
Jeremy Banks April 20, 2015

Thanks Robert, I'll give Firebase a crack.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events