Uploaded image for project: 'SR for Confluence - Development'
  1. SR for Confluence - Development
  2. SRCONF-1510

The ScriptRunner based Page Info macro does not support an @SELF reference to the current page

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 6.17.0
    • Component/s: Page Info Macro
    • Labels:
      None
    • Sprint:
      SR4C Sprint 150, SR4C Sprint 151
    • Critical Points:
      0

      Description

      The legacy Page Info macro supported an @SELF reference to the current page but this is no longer supported within the current implementation of this macro. The documented method of referring to the current page is with the $self syntax. 

      The following storage format displays how an example of a valid macro within the legacy version of the Page Info macro:

      <ac:structured-macro ac:name="page-info" ac:schema-version="1" ac:macro-id="6c91ee0c-dba0-4435-9d8c-ba96806d9042"><ac:parameter ac:name="page"><ac:link><ri:page ri:content-title="@SELF" /></ac:link></ac:parameter><ac:parameter ac:name="">tinyurl</ac:parameter></ac:structured-macro>

       As with the linked ticket, this issue prevents the macro from rendering as expected. 

      Workaround

      Until a bugfix is released for this, customers can work around this issue by creating a new instance of the macro in the current plugin with the same parameters and deleting the old.

        Attachments

          Activity

            People

            Assignee:
            twortham Tiffany Wortham
            Reporter:
            lwonnacott Lee Wonnacott
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: