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!
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for taking a look Robert. This is what I get:
property "reports" not allowed by "properties" or by "patternProperties" and "additionalProperties" is false
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you tell us what the end results of using the Atlassian Connect Validator are? https://atlassian-connect-validator.herokuapp.com/validate
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.