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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

78 views 0 5
Read article

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