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

Fire event in post function for notification is not respected when issue transitions

XMLWordPrintable

      Summary

      • Email notification is sent to user who is assigned to an issue using post function although the fire event is not associated to any email ( user or group ) .

      Steps to Reproduce

      1. Create a dummy event ( No eMail)
      2. Create a new Notification scheme and only configure the following :
      3. Associate that notification scheme to the project.
      4. Edit the project's workflow to have a looped transition back to the same state, add a post function event for Update Issue Field and then Select the Assignee field to be assigned with a user (Test) then click Add.
      5. Edit the Fire a Generic Event event that can be processed by the listeners. with the new event created earlier (No eMail)
      6. Publish the workflow.
      7. Create an issue without an assignee
      8. Transition the issue to the same state and the issue will be assigned to the user configured in the post function ( Test ).

      Expected Results

      • Email notificaiton is not supposed to be sent to the assignee ( Test ) as the post workflow is not firing the issue assignee notification but a dummy event ( No eMail )

      Actual Results

      • Email notification is sent to the assignee ( test )

      Notes

      The expectation from previous version 5.2.11 is NOT to receive an email since the event "No eMail" hasn't any recipients in the notification scheme. This event was created to make sure there are no emails sent during the transition.

      Workaround

      • Remove the notification of Current Assignee for Issue Assigned (System) for the project's notification scheme. This will completely prevent the Issues Assigned notification from being fired.
      • Instead of using Current Assignee for the Issue Assigned (System) notification, you can associated it to a Group. You can associate members who you want to receive notification if they are assigned to an issue. If the user is not in that group, the user will not receive any notification when assigned to an issue.

        1. event8.png
          event8.png
          35 kB
        2. event6.png
          event6.png
          91 kB
        3. event4.png
          event4.png
          69 kB
        4. event3.png
          event3.png
          29 kB
        5. event2.png
          event2.png
          88 kB
        6. event1.png
          event1.png
          11 kB

              Unassigned Unassigned
              astephen@atlassian.com Adrian Stephen (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: