NOTE: This bug report is for JIRA Software Server. Using JIRA Software Cloud? See the corresponding bug report.

      Summary

      If you select the button Add flag and comment (board view), it will open a new screen to add a comment, if you select add nothing will happen and you won't be able to cancel the operation, the screen will freeze.
      It happens only when the issue on that board is associated to a Service Desk Project.

      Steps to Reproduce

      1. Create a board that contains issues from a JIRA Service Desk project.
      2. Click either Backlog, Active sprints, or Kanban board.
      3. Select an issue from a JSD project within the board
      4. Click the issue then in question and in the Issue Detail View, select "Add flag and comment".
      5. Write the comment and try to add it.

      Expected Results

      The issue will be flagged and a comment added to the issue.

      Actual Results

      The screen freezes in JIRA Cloud instances.
      In JIRA Server an error is thrown on the screen of

      Exception: Uncaught TypeError: Cannot read property 'trim' of undefined  
      

      Workaround

      Add the flag and the comment separately (not applicable for Cloud).

        1. typeerror1.png
          548 kB
          Andy Heinzer

            [JSWSERVER-14817] Add flag and comment is not working on Service Desk projects

            SET Analytics Bot made changes -
            Support reference count Original: 33 New: 34
            SET Analytics Bot made changes -
            UIS Original: 11 New: 5
            SET Analytics Bot made changes -
            UIS Original: 16 New: 11
            SET Analytics Bot made changes -
            UIS Original: 22 New: 16
            SET Analytics Bot made changes -
            UIS Original: 23 New: 22
            SET Analytics Bot made changes -
            UIS Original: 24 New: 23
            SET Analytics Bot made changes -
            UIS Original: 23 New: 24
            SET Analytics Bot made changes -
            UIS Original: 24 New: 23
            SET Analytics Bot made changes -
            UIS Original: 18 New: 24
            SET Analytics Bot made changes -
            Support reference count Original: 32 New: 33

              npellow Nick
              aschneider@atlassian.com Adalberto Schneider
              Affected customers:
              91 This affects my team
              Watchers:
              84 Start watching this issue

                Created:
                Updated: