The expand-macro.js is pulling a list of all child elements rather than just taking the first one, adding .first() to the end of the expanderContent definition resolves this and allows inner expands to behave as expected.

      src:

      AJS.toInit(function ($) {
          // preload open image
          // contextPath will be expanded by the cssSubstituionTransformer
          new Image().src = "@contextPath/images/icons/grey_arrow_down.gif";
      
          function expand(e) {
              var expander = $(this),
                  expanderIcon = $(".expand-control-icon", expander),
                  expanderContent = $(".expand-content", expander.closest(".expand-container")).first();
      
              if (e.type == "click" || (e.type == "keyup" && e.keyCode == 13)) {
                  if (expanderContent.hasClass("expand-hidden")) {
                      // open
                      expanderContent.fadeIn("fast");
                  } else {
                      // close
                      expanderContent.fadeOut("fast")
                  }
                  
                  expanderContent.toggleClass("expand-hidden");
                  expanderIcon.toggleClass("expanded");
              }
          }
          
          $(".expand-control").click(expand).keyup(expand);
      });
      

            [CONFSERVER-25537] expand macro expands all nested expands

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2896121 ] New: CONFSERVER Bug Workflow v4 [ 2988686 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2789137 ] New: JAC Bug Workflow v3 [ 2896121 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2720437 ] New: JAC Bug Workflow v2 [ 2789137 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2389476 ] New: JAC Bug Workflow [ 2720437 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2267371 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2389476 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2219912 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2267371 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2154708 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2219912 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1937284 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2154708 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1736456 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1937284 ]
            Katherine Yabut made changes -
            Workflow Original: CONF Bug Subtask WF (TEMP) [ 1694791 ] New: Confluence Workflow - Public Facing - Restricted v3 [ 1736456 ]

              Unassigned Unassigned
              9fcfb21963e3 Alain Moran
              Affected customers:
              0 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: