I am working on a new Confluence plugin. It offers page macros. In one of them I need an attachment field, the typical list box. The documentation says to add a parameter in your atlassian-plugin.xml file:
I did it like this:
<xhtml-macro name=...> <parameters> <parameter name="File" type="attachment"/> </parameters> </xhtml-macro>
The code creates the field but when I open it there are no attachments listed. The listbox is empty.
There are attachments on that page. So that’s not the problem.
I am using the Atlassian SDK 6.2.15 which installs Confluence 5.10.7.
The same mimic works well for type=“spacekey” and type=“username”, only not for the attachment type.
Any idea what that could be? Do I have to import a special library in my Java class maybe?