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 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

  1. In a Confluence page, Insert insert a Run with a user form and parameters macro.
  2. Inside Insert an Attachment Table macro inside the Run macro, insert Attachment Table macro as a nested 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 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 $LABEL under Attachment filtering for Enter $LABEL in Attachment label regex fieldunder the Attachment filtering tab and Save the macro.
      Image Modified
  4. Edit the Run with a user form and 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 key.
      Image RemovedImage Added
  5. Save the changes and publish the page.
  6. 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:
    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.