Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

atlassian-connect Dynamic Content Module - parameters bug

Andrew Tyson August 15, 2020

Hi,

 

I am developing an atlassian-connect Dynamic Content Module macro for Confluence cloud. I want to be able to configure the parameters for the plugin, however the non-string type parameters do not seem to be set in the url.

 

For example in the atlassian-connect.json below "htmlAttachment", "frameborder", and "scrolling" parameters are not being injected into the "url" ("frameborder" and "scrolling" can be set through the config page for the macro). Also, the HTML attachment does not appear to pick-up the attachments on the page.

 

"modules": {

"dynamicContentMacros": [

{

"url": "/foo?page={content.id}&space={space.id}&htmlAttachment={htmlAttachment}&scrolling={scrolling}&frameborder={frameborder}&width={width}&height={height}",

"parameters": [

{

"identifier": "htmlAttachment",

"name": {

"value": "HTML Attachment"

},

"description": {

"value": "The HTML file to embed"

},

"type": "attachment",

"defaultValue" : "",

"required": false,

"multiple": false,

"hidden": false

},

{

"identifier": "width",

"name": {

"value": "Width"

},

"type": "string",

"required": false,

"multiple": false,

"hidden": false

},

{

"identifier": "height",

"name": {

"value": "Height"

},

"type": "string",

"required": false,

"multiple": false,

"hidden": false

},

{

"identifier": "scrolling",

"name": {

"value": "Scrollling"

},

"description": {

"value": "Choose if scrolling should be enabled"

},

"type": "ENUM",

"required": true,

"multiple": false,

"defaultValue": "no",

"values": [

"yes",

"no",

"auto"

],

"hidden": false

},

{

"identifier": "frameborder",

"name": {

"value": "Frameborder"

},

"description": {

"value": "Surround IFrame with a border"

},

"type": "boolean",

"required": true,

"multiple": false,

"hidden": false

}

],

...

}

 

any thoughts would be appreciated.

 

Thanks

Andrew 

 

 

1 answer

0 votes
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 18, 2020

Hello @Andrew Tyson !

As I understand, parameters are not passed correctly. You can find further instructions about Dynamic Content macros here:

However, I believe that our sister community, the Developer Community can be the place where you will find your answer!

You can post your question here and other developers can help you out:

Let us hear from you!

Andrew Tyson August 19, 2020

Thanks Diego, I will post to the Developer Community.

Cheers,
Andrew

Like Diego likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events