This article explains how to input data using a form and retrieve the attachments into a Confluence page , based on the attachment labels using the Run Self-Service Reports for Confluence and SQL Advanced Table for Confluence apps.
Instructions
- In a Confluence page, Insert insert a Run with a user form and parameters macro.
- Inside Insert an Attachment Table macro inside the Run macro, insert Attachment Table macro as a nested macro.
- Edit the Attachment macro and perform the following:
- Select the respective relevant filtering options for the Source, Space, and Page sections parameters. In this example, we are using the Single page, Current space, and Current page options respectivelyare selected for the respective parameters.
- Use $LABEL under Attachment filtering for Enter $LABEL in Attachment label regex fieldunder the Attachment filtering tab and Save the macro.
- Select the respective relevant filtering options for the Source, Space, and Page sections parameters. In this example, we are using the Single page, Current space, and Current page options respectivelyare selected for the respective parameters.
- Edit the Run with a user form and parameters macro and do as follows:
- Click Add my first field in the in Field settings:.
- Select the desired Field Type and add LABEL as in Field key.
- Click Add my first field in the in Field settings:.
- Save the changes and publish the page.
- Enter the required details label to be retrieved and click Run. Results are shown as per the labels given label available for the attachments on the respective specified page. In this example, the output is as shown:
Info |
---|
The $ immediately followed by a Field key (LABEL in this case, LABEL) from from the Run with a user form and parameters macro is replaced by the values provided in the form. |