Versions Compared

Key

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

This article explains how to use SQL for Confluence with Run Self Service Reports to display dynamic content on a page.

...

  1. Insert a Run with a user form and parameters macro in a Confluence page and provide field values for the form by editing the Run macro as shown below screenshot:

  2. Insert another macro: SQL macro inside the Run macro in a Confluence page and write a SELECT statement in the SQL macro settings as shown below:

    Code Block
    themeMidnight
    Select CREATOR,CREATIONDATE from SPACES WHERE SPACEID='$Space Id' AND SPACEKEY='$Space Key';


    Info

     For dynamic value substitution, you need to use $ with the field name

  3. Insert another macro: Run with a user form and parameters and add the above SQL macro inside this Run macro.
    Image Removed
  4. Provide field values for the form by editing the Run macro as shown below screenshot:

    in the SQL macro 


    Image Added
  5. Provide the values for the fields as shown below:
    Image Modified
  6. Click Run to display the results.


Info

This example is from the SQL Server database.

...