Apply regular expression to email'd issue create/issue comments (remove spaces)

XMLWordPrintable

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.

      Issues created/commented on via email often have too much whitespace - double spaces between lines, etc. This makes the resulting descriptions/comments hard to read.

      One solution would be to allow the user to specify two new parameters on the 'createissue' and 'createorcommentissue' handlers. These would be as follows:
      regex = regular expression to match with in replaceall
      regexreplace = what to replace every found instance of 'regex'

      I have made these changes to my version of 3.12.3 code and attached the modified files. Three files were modified:

      com.atlassian.jira.service.util.handler.CreateOrCommentHandler
      com.atlassian.jira.service.util.handler.CreateIssueHandler
      com.atlassian.jira.service.util.handler.FullCommentHandler

        1. CreateIssueHandler.class
          15 kB
        2. CreateIssueHandler.java
          19 kB
        3. CreateOrCommentHandler.class
          5 kB
        4. CreateOrCommentHandler.class
          5 kB
        5. CreateOrCommentHandler.java
          5 kB
        6. FullCommentHandler.class
          3 kB
        7. FullCommentHandler.java
          2 kB

              Assignee:
              Unassigned
              Reporter:
              William Crighton [CCC]
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: