Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-4957

event.getComment() in issueUpdated() returns null if no fields modified (except comment)

    XMLWordPrintable

Details

    Description

      I've written a listener basing it off a 'standard' issue event listener from Atlassian. I've attached it (after filing the bug).

      The listener calls a web listener running on somewhere else. There is no problem calling the external web listener.

      The problem is that the event parameter routine 'getComment()' will return a null value if a comment is the only modification done to the issue.

      I fully realize that my users could go and select 'add comment' under 'operations' while browsing the issue. However, my users are stupid and will more than likely select 'edit issue' and only add a comment.

      Note: If a single field is modified in addition to adding an issue comment then the event.getComment() returns the new comment.

      I've written my listener to log messages for every event call - the only event which is called after the issue is modified is 'issueUpdated'. issueCommented is not called unless the user selects 'add comment' under operations.

      I can work around this by modifying the jsp file for edit issue and removing the lines which display the comment box. However, I would like to avoid this if possible.

      -wc

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              a09a4d781816 William Crighton [CCC]
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: