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

Text output of release notes generates lots of extra whitespace when project has numerous unused issuetypes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 7.4.2, 7.5.0, 7.13.1, 7.13.5
    • Release Hub

    Description

      Summary

      In JIRA Software, when using the release note creation feature, you have two options HTML or text. When selecting the text option, the output can become full of lots of extra carriage returns and unneeded whitespaces

      Environment

      Only when selecting the text output, the HTML output does not appear to be effected

      Steps to Reproduce

      1. create a software project
      2. make sure this project has at least 10 different issuetypes in it (the more issuetypes the project has, the easier it is to see this bug later)
      3. Then make sure that all the issues in the release are of just a single issue type
      4. create release notes

      Expected Results

      text output contains all the issues in the release with minimal extra whitespaces

      Actual Results

      It appears that the text output is creating a single carriage return for each issue type in the project, even if no issues of that type exist in the release.

      Notes

      This would be difficult to notice if you only had say 3-5 issuetypes in a project, but when you have 10-20 issuetypes in a project and the release only contains a single issue type, you can expect to see this specific problem.

      Workaround

      • This appears to be governed by the <jira-application-dir>/WEB-INF/classes/templates/jira/project/releasenotes/releasenotes-text.vm
      • There looks to be an additional carriage return on line 40 of that template that is forcing this space in for each issuetype being looked for here.

      Attachments

        Activity

          People

            Unassigned Unassigned
            aheinzer Andy Heinzer
            Votes:
            8 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: