Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-59826

Additional $ added to variable when reusing variables in templates

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 5.2, 5.3, 5.4.4, 6.9.1, 6.14.2, 6.14.3, 6.15.8, 7.4.0, 7.13.1, 8.9.3
    • None

      Issue Summary

      When attempting to reuse a variable from the template menu, a new variable is created instead.

      Per Create a Template > Template Variables:

      You can add the same variable more than once in the same template, which is useful if you need the same information in more than one place on the page.

      Steps to Reproduce

      1. Create a new template.
      2. Instead of typing $, use the template menu to create a new variable:
      3. Now, try to select the same variable from that menu in order to add a 2nd copy to the page.

      Expected Results

      The variable is reused on the page.

      Actual Results

      An additional $ is appended to the variable, creating a brand-new variable.

      Workaround

      From the documentation on Templates:

      Hint: Type $ and the variable name, then press Enter to add a new variable or to select an existing variable from a list of suggestions. The suggestions dialog shows variables already defined in this template.

      Confirmed reusing a variable in this way works as expected.

        1. image-2020-05-13-16-16-28-947.png
          4 kB
          SMS
        2. 6.15.8.png
          23 kB
          SMS

              Unassigned Unassigned
              smackie@atlassian.com SMS (Inactive)
              Votes:
              16 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated: