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