User macro with no parameter, no "$noparams" doesn't show up in macro browser

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Summary

      User macros that have no parameter and no "$noparams" don't show up in macro browser.

      Steps to Reproduce

      1. Create a user macro as follows
        ## Macro title: Test Macro
        This is a test macro!
        
      2. Create a new page
      3. Open macro browser and search the created macro

      Expected Results

      The test macro shows up in the macro browser, and behave as follows –

      If the user macro contains no parameters and does not specify @noparams, then the macro browser will display a free-format text box allowing users to enter undefined parameters.

      as described in https://confluence.atlassian.com/doc/user-macro-template-syntax-223906130.html

      Actual Results

      The test macro doesn't show up in the macro browser.

      Workaround

      • Add "@noparams" in your macro.
        ## Macro title: Test Macro
        ## @noparams
        This is a test macro!
        

        Or,

      • Insert the macro directly typing " {<macro-name>}

        " in Confluence editor.

            Assignee:
            Unassigned
            Reporter:
            Nobuyuki Mukai
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: