Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article explains how to input data using a form and retrieve the attachments in into a Confluence page based on attachment labels using the Run Self-Service Reports for Confluence and SQL Advanced Table for Confluence apps respectively.

Instructions

  1. Insert Attachment Table macro with a nested In a Confluence page, insert a Run with a user form and parameters macroparameters macro.
  2. Insert an Attachment Table macro inside the Run macro.
    Image RemovedImage Added
  3. Edit the Attachment macro and perform the following:
    1. Select the respective relevant filtering options for the Source, Space, and Page sections respectively parameters. In this example, we are using the Single page, Current space, and Current page options respectivelyare selected for the respective parameters.
      Image Modified
    2. Use Enter $LABEL in Attachment label regex under the Attachment filtering for Attachment label regex fieldtab and Save the macro.
      Image Modified
  4. Edit the Run with a user form and parameters macroand parameters macro and do as follows:
    1. Click Add my first field in the in Field settings:.
      Image RemovedImage Added
    2. Select the desired Field Type and add LABEL as in Field Keykey.
      Image RemovedImage Added
  5. Save the changes and publish the page.
  6. Enter the required details and click label to be retrieved and click Run. Results will be are shown as per the labels given label available for the attachments in on the respective specified page. In this example, the output is as shown:
    Image Modified
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.

...