We have a dialog in our Jira cloud app.
However when we configure it as a dialog (under module:dialogs within our json connect) we get the error :
"The content resolver threw the following error:
Unable to retrieve addon module URL. Please check your specified module key."
If we configure it in our connect file as a generalPages or as a jiraProjectPages, it is found (but it then appears as a menu item which we don’t want)
It seems as if connect dialogs are not being indexed as keyed and findable content.
Can you please provide more details. How are you attempting to open the dialog? Is it through a web item referring to it? If so, can you please provide the dialog and web item definitions from your Connect descriptor. Alternatively, if you’re attempting to open it from the JavaScript API, please provide your dialog definition and your JavaScript code you are attempting to open it with.
Hey @colin.hammond, do you see any errors when you upload your descriptor? The reason I ask is that, according to the doco, the Dialog module doesn’t have ‘conditions’ or ‘name’ attributes.
@david.pinn Thanks for your comment. There was no error with the install. On your suggestions I have removed the conditions and name attributes from the connect file. Just trying to get it deployed so I can test if this helps.
Am now bumping into the “could not be installed as a local app as it has previously been installed from Atlassian Marketplace”. Which is strange because it never was installed locally on this particular instance.
Hi Dugald,
I do have a descriptor as per the extract of the connector above.
I am trying David’s suggestion of removing the attributes in the connector that appear unavailable for dialogs.
Unfortunately I can’t get that proven as I am now bumping into a different problem, see below. And stuck again. It would nice if there were some better diagnostics tools available for cloud app developing to help the reduce the need for so much trial and error.
For anyone else who encounters this problem, the dialog module allows you to add options (for size). It turns out the options are not optional. If you exclude the options in your descriptor, the dialog will not be found.
In short - options are not optional but mandatory in the descriptor.