Skip to end of banner
Go to start of banner

How to retrieve attachments based on the labels using Run Macro

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

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

Instructions

  1. Insert Attachment Table macro with a nested Run with a user form and parameters macro.

  2. Edit the Attachment macro:
    1. 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.
    2. Use $LABEL under Attachment filtering for Attachment label regex field.

  3. Edit the Run with a user form and parameters macro:
    1. Click Add my first field in the Field settings:

    2. Select the desired Field Type and add LABEL as Field Key.

  4. Save the changes and publish the page.
  5. Enter the required details and click Run. Results will be shown as per the labels available for the attachments in the respective page.

 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.

  • No labels