Atlassian connect Add on, how to create report

I am trying to create a report for a JIRA cloud add-on.

As described https://developer.atlassian.com/static/connect/docs/modules/jira/report.html, below is my report descriptor in atlassian-connect.json:

"modules": {
"reports": [
{
"key": "my-custom-report",
"name": "My Custom Report",
"description": "My Custom Report",
"url": "/my-custom-report-url",
"reportCategory": "other",
"thumbnailUrl": "/report.png"
}
]
}

Though I am running following error:

2015-02-26 11:15:30,280 UpmAsynchronousTaskManager:thread-4 ERROR admin 667x4448x1 1uc4rof 127.0.0.1 /rest/plugins/1.0/ [connect.plugin.installer.DefaultConnectAddOnInstaller] An exception occurred while installing the plugin '[com.foo.bar.cloud]. Uninstalling...
com.atlassian.plugin.connect.plugin.descriptor.InvalidDescriptorException: Invalid connect descriptor: com.github.fge.jsonschema.core.report.ListProcessingReport: failure
--- BEGIN MESSAGES ---
error: object instance has properties which are not allowed by the schema: ["reports"]
level: "error"
schema: {"loadingURI":"#","pointer":"/properties/modules"}
instance: {"pointer":"/modules"}
domain: "validation"
keyword: "additionalProperties"
unwanted: ["reports"]

 

Could someone please suggest what am I missing ? 

Many Thanks!

 

5 answers

1 accepted

1 vote

You want to use "jiraReports" instead of "reports".

Which is not obvious from the docs: https://developer.atlassian.com/static/connect/docs/modules/jira/report.html

However it is obvious from my Haskell implimentation: http://hackage.haskell.org/package/atlassian-connect-descriptor-0.4.0.0/docs/Data-Connect-Descriptor.html#t:JIRAModules

Appreciate it Robert! Looking at JIRA server way of Report impl, I was under impression it should only be "reports". Thanks for your findings.

0 vote

Can you tell us what the end results of using the Atlassian Connect Validator are? https://atlassian-connect-validator.herokuapp.com/validate

Thanks for taking a look Robert. This is what I get:

modules

DESCRIPTION
property "reports" not allowed by "properties" or by "patternProperties" and "additionalProperties" is false
I tried "report" too instead of "reports". Since Report is a JIRA module, I am assuming it has to go under modules.
Appreciate your help!
Thanks
Mukul

modules DESCRIPTION property "reports" not allowed by "properties" or by "patternProperties" and "additionalProperties" is false I tried "report" too instead of "reports". Since Report is a JIRA module, I am assuming it has to go under modules. Appreciate your help! Thanks Mukul

This works :

"jiraReports" : [{
	"key": "my-custom-report",
	"name": {
		"value": "Custom-Reports"
	},
	"description": {
		"value": "My Custom Reports"
	},
	"url": "/my-custom-report-url",
	"reportCategory": "other",
	"thumbnailUrl": "/report.png"
}]

Please note that "name" and "description" should be Objects not string.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

147 views 1 17
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