Unknown macro error shown if the macro has curly brackets (braces) in a field

XMLWordPrintable

    • 3
    • Severity 3 - Minor

      Summary

      With any macro that has fields to configure, if curly brackets ( { } ) are inserted, the macro will display an "Unknown macro" error in edit mode, but will render correctly in view mode.
      This is observed in legacy editor.

      Environment

      • Confluence cloud

      Steps to Reproduce

      1. Insert a macro - let's use the "Info" macro for this example;
      2. Click on the macro and hit Edit;
      3. In the field (Optional Title in this example) type "Test {test}" and save the macro.

       

      Another set of steps:

      1. Insert "Create from Template macro"
      2. In the "Title of page to be created" field type something like: "Test - {Test Name Here}"
      3. Save the macro.

      Expected Results

      The macro will be correctly rendered in edit mode.

      Actual Results

      The macro is rendered with an "Unknown macro" error on edit mode, as shown below:

      Notes

      The macro will be correctly rendered on view mode.

      Workaround

      1. removing the brackets in legacy editor.
      2. Convert to new editor where this issue doesn't replicate.

        1. Screenshot 2023-03-16 at 9.03.54 PM.png
          186 kB
          Jagriti - (Atlassian)
        2. unknown_macro.png
          6 kB
          Guilherme T

              Assignee:
              Unassigned
              Reporter:
              Guilherme T (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: