Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-2212

Greenhopper JavaScript sets browser title incorrectly for ampersand '&'

      Greenhopper tries to display our project name, "Ticker & NLE", in the browser's title bar when on the Agile pages. But, the name is escaped so that it displays incorrectly. From the page source:

      <script type="text/javascript">
      document.title = "Ticker &amp; NLE - Chart Board - Vizrt JIRA";
      </script>
      

      This results in the text "Ticker & NLE" in the title. If I change the code to the following, it displays correctly:

      <script type="text/javascript">
      document.title = "Ticker & NLE - Chart Board - Vizrt JIRA";
      </script>
      

      Reproduction steps:

      1. Create a project named "This & That".
      2. Enable the project in Greenhopper.
      3. Open project in Greenhopper's Agile view.

      Expected behaviour: Browser tab displays "This & That - Task Board [...]".

      Actual behaviour: Browser tab displays "This & That - Task Board [...]".

      In Chrome and Firefox.

            [JSWSERVER-2212] Greenhopper JavaScript sets browser title incorrectly for ampersand '&'

            Bugfix Automation Bot made changes -
            Minimum Version New: 4.04
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2853252 ] New: JAC Bug Workflow v3 [ 2936120 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v7 - Restricted [ 2545601 ] New: JAC Bug Workflow v2 [ 2853252 ]
            Status Original: Closed [ 6 ] New: Resolved [ 5 ]
            Ignat (Inactive) made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v6 - Restricted [ 1549982 ] New: JIRA Bug Workflow w Kanban v7 - Restricted [ 2545601 ]
            Confluence Escalation Bot (Inactive) made changes -
            Labels New: affects-server
            Owen made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v6 [ 906574 ] New: JIRA Bug Workflow w Kanban v6 - Restricted [ 1549982 ]
            Oswaldo Hernandez (Inactive) made changes -
            Workflow Original: GreenHopper Kanban Workflow 20141014 [ 746298 ] New: JIRA Bug Workflow w Kanban v6 [ 906574 ]
            mtokar.adm made changes -
            Workflow Original: GreenHopper Kanban Workflow v2 [ 300273 ] New: GreenHopper Kanban Workflow 20141014 [ 746298 ]
            Stuart Bargon [Atlassian] made changes -
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Stuart Bargon [Atlassian] made changes -
            Workflow Original: GreenHopper Kanban Workflow [ 296891 ] New: GreenHopper Kanban Workflow v2 [ 300273 ]

              jchuet JC
              mychin Min Yee Chin [Atlassian]
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: