jira json descriptor file

We are getting Error as " Invalid .json descriptor file" while making internal add on in JIRA cloud instance.

Please help.

6 answers

This widget could not be displayed.
Daniel Wester Community Champion Aug 19, 2015

You'll probably need to post the json file in order for us to help you. Does it work when you install it on a local instance? Is the json file listed as private add-on on the marketplace?

This widget could not be displayed.

Please try using the validator before installing it in a cloud instance: https://atlassian-connect-validator.herokuapp.com/validate

This widget could not be displayed.

Currently I don't have any local instance of JIRA.I just use trial version of JIRA cloud and developed one simple  plugin to host it as private add on.

Please refer the file from here.

 https://46161658.ngrok.io/App/atlassian-connect.json

( or )

This is the file content:

{ "name": "Hello World", "description": "Atlassian Connect add-on", "key": "net.ArsinEffecta.jira.EffectaPlug", "baseUrl": "https://arsin-it.atlassian.net";, "vendor": { "name": "Arsin, Inc.", "url": "http://arsin.com";
 }, "authentication": { "type": "none" }, "apiVersion": 1, "modules": { 
"generalPages": [ { "url": "/Helloworld.html", "key": "hello-world", 
"location": "system.top.navigation.bar", "name": { "value": "Greeting" }
 } ] } }
This widget could not be displayed.

You have two semicolons in your Atlassian Connect descriptor. Try using this instead:

{ "name": "Hello World", 
   "description": "Atlassian Connect add-on", 
     "key": "net.ArsinEffecta.jira.EffectaPlug", 
       "baseUrl": "https://arsin-it.atlassian.net", 
         "vendor": { "name": "Arsin, Inc.", "url": "http://arsin.com" }, "authentication": { "type": "none" }, "apiVersion": 1, "modules": { "generalPages": [ { "url": "/Helloworld.html", "key": "hello-world", "location": "system.top.navigation.bar", "name": { "value": "Greeting" } } ] } }

Also, you should use the Atlassian Connect Validator to verify that your descriptor is correct.

This widget could not be displayed.

Still it is showing as Invalid .json descriptor file

This is the file content

 

{ "name": "Hello World Plug",
"description": "Atlassian Connect add-on",
"key": "net.ArsinEffecta.jira.Eff",
"baseUrl": "https://85149a26.ngrok.io/JIRA",
"vendor": { "name": "Arsin, Inc.", "url": "http://arsin.com" }, "authentication": { "type": "none" }, "apiVersion": 1, "modules": { "generalPages": [ { "url": "/Helloworld.html", "key": "hello-world", "location": "system.top.navigation.bar", "name": { "value": "Greeting" } } ] } }

 

Attached is the validation Pass result.Please help.JsonErrorFile.jpg


This widget could not be displayed.
David Boyd Atlassian Team Aug 24, 2015

Hi @Arsin Effecta
The descriptor installs okay for me.  
Can you please try browsing to your descriptor baseUrl to verify it is correct?
ie. 

https://85149a26.ngrok.io/JIRA/atlassian-connect.json

should show your descriptor.

Also, I recommend following the developing locally guide, as the JIRA logs may provide more info and you won't need to list your add-on in Marketplace until it is ready.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

225 views 3 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you