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

Fire all notification scheme events regardless of whether or not other events have been activated

    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

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

      I recently opened a support request because my 'Assignee' email notifications were not being generated, even though 'Current Assignee' was a recipient of all 'Issue Assigned'.

      I was setting the assignee of issues three ways:
      1. Using the 'Assign to' link
      2. Setting the assignee while editing an issue, using 'Edit'
      3. Setting the assignee during a transition

      Because the current assignee was not a recipient of 'Issue Updated' and 'Work Started on Issue' events, no email notifications were sent.

      I am requesting that all relevant events be triggered each time the event occurs. For example if an assignee and fix version is set while editing an issue, this should trigger both Issue Updated & Issue Assigned. If an assignee & fix version is set while transitioning to In Progress, this should trigger 'Work Started on Issue', 'Issue Updated', and 'Issue Assigned'.

      All relevant events should be triggered, and the recipient should receive a single notification. In our particular application, we want the current assignee to receive a notification each time they are assigned, but only the watchers to receive notification when an issue is updated. Sending the current assignee emails every time an issue is updated by anybody (they are able to disable notifications for their own changes) is far too many notifications for our needs. Unfortunately, including Current assignee to the Issue Updated list is the only way to get them to receive AT LEAST the assignee emails.

            [JRASERVER-12362] Fire all notification scheme events regardless of whether or not other events have been activated

            Hi all,

            This problem is also being tracked at JRA-29328.

            Consequently, I will proceed to close this one in favour of JRA-29328 so we can track the problem in a single issue.

            Please feel free to watch/vote on JRA-29328 if you have not done so already.

            Many thanks.

            Regards,

            Oswaldo Hernández.
            JIRA Bugmaster.
            [Atlassian].

            Oswaldo Hernandez (Inactive) added a comment - Hi all, This problem is also being tracked at JRA-29328 . Consequently, I will proceed to close this one in favour of JRA-29328 so we can track the problem in a single issue. Please feel free to watch/vote on JRA-29328 if you have not done so already. Many thanks. Regards, Oswaldo Hernández. JIRA Bugmaster. [Atlassian] .

            Interestingly enough we are having a fair bit of trouble with that one too at the moment.

            Users want to receive notifications about re-assigning events only.

            It can not be that hard to fix, is it?

            Please check how many people signed up to watch the issue.

            Evgeny Minkevich added a comment - Interestingly enough we are having a fair bit of trouble with that one too at the moment. Users want to receive notifications about re-assigning events only. It can not be that hard to fix, is it? Please check how many people signed up to watch the issue.

            Our Jira users in v6.2 are restricted by this issue, too. It is hard to explain that users must activate the Assign button instead of a direct input into the assignee field to generate the important notification mails. I highly suggest Atlassian to fix this bug now (considering that it initially has been reported in 2007).

            Stefan Luckhaus added a comment - Our Jira users in v6.2 are restricted by this issue, too. It is hard to explain that users must activate the Assign button instead of a direct input into the assignee field to generate the important notification mails. I highly suggest Atlassian to fix this bug now (considering that it initially has been reported in 2007).

            Mark Love added a comment -

            Thanks for the workaround Felix.

            I'm getting very frustrated with having to install and configure add-on after add-on to cover really quite basic functionality that should be "out the box". Our configuration is getting very complicated already and I'm already getting a lot of concern from the people who are going to have to maintain and support Jira once I leave.

            So, I've kept it simple and disabled the "assignee" field on the default screen, and am forcing people to use the "Assign" button instead. It's less user-friendly but a lot simpler.

            Mark Love added a comment - Thanks for the workaround Felix. I'm getting very frustrated with having to install and configure add-on after add-on to cover really quite basic functionality that should be "out the box". Our configuration is getting very complicated already and I'm already getting a lot of concern from the people who are going to have to maintain and support Jira once I leave. So, I've kept it simple and disabled the "assignee" field on the default screen, and am forcing people to use the "Assign" button instead. It's less user-friendly but a lot simpler.

            ml1 I believe you could use the JJupin plugin and use its Simple Issue Language (SIL) to achieve what you are looking to do.

            Essentially, you'll need to use a SIL Listener and listen for the "Issue Updated" event, then you can use the fieldHistory routine to determine if the assignee field was updated just now.

            Then you can trigger an Issue Assigned event, see raiseEvent

            I won't go into too much specifics here, but you've used groovy before, I'm sure you'll figure out SIL very quickly.

            Félix Martineau [Expert] added a comment - - edited ml1 I believe you could use the JJupin plugin and use its Simple Issue Language (SIL) to achieve what you are looking to do. Essentially, you'll need to use a SIL Listener and listen for the "Issue Updated" event, then you can use the fieldHistory routine to determine if the assignee field was updated just now. Then you can trigger an Issue Assigned event, see raiseEvent I won't go into too much specifics here, but you've used groovy before, I'm sure you'll figure out SIL very quickly.

            Mark Love added a comment -

            We have exactly the same problem. I want users to get notified when an issue is assigned to them, reagarless of whether the user has pressed the "Assign" button, or updated the "Assignee" field in the issue. It is bonkers that Jira treats these two use cases differently and fires of an "Issue Assigned" event for the first and an "Issue Updated" event for the second.

            Since an "Issue Updated" event is fired whenever any issue field is updated (even "Rank, when a card is moved up/down on an agile board) it is impossible to distinguish assignments from other updates, and send a custom email.

            I've been using the groovy script runner plug in to try to work around this, and even this can't manage it since the "Issue Updated" event that gets fired on an edit isn't part of a workflow transition, so you can't use a condition like issue.assignee != originalIssue.assignee

            There doesn't seem to be any way to support this fundamental requirement (send email notification when something is assigned to you). This issue is now 7 years old - will Atlassian ever start listening to its users?

            Mark Love added a comment - We have exactly the same problem. I want users to get notified when an issue is assigned to them, reagarless of whether the user has pressed the "Assign" button, or updated the "Assignee" field in the issue. It is bonkers that Jira treats these two use cases differently and fires of an "Issue Assigned" event for the first and an "Issue Updated" event for the second. Since an "Issue Updated" event is fired whenever any issue field is updated (even "Rank, when a card is moved up/down on an agile board) it is impossible to distinguish assignments from other updates, and send a custom email. I've been using the groovy script runner plug in to try to work around this, and even this can't manage it since the "Issue Updated" event that gets fired on an edit isn't part of a workflow transition, so you can't use a condition like issue.assignee != originalIssue.assignee There doesn't seem to be any way to support this fundamental requirement (send email notification when something is assigned to you). This issue is now 7 years old - will Atlassian ever start listening to its users?

            This problem is so insidious because most of us don't realize its not working. When I keep changing the status to 'Resolved', reassigning my tasks to the requestor and telling them to close the issue if there is no problem, I have no idea that they're not receiving any email updates. I had put it down to user stupidity/laziness until I finally realized they weren't getting updates, which made me realize that a number of updates I had taken for granted were not happening. Poor.

            Manohar Venkataraman added a comment - This problem is so insidious because most of us don't realize its not working. When I keep changing the status to 'Resolved', reassigning my tasks to the requestor and telling them to close the issue if there is no problem, I have no idea that they're not receiving any email updates. I had put it down to user stupidity/laziness until I finally realized they weren't getting updates, which made me realize that a number of updates I had taken for granted were not happening. Poor.

            Unfortunately the OnDemand service doesn't allow configuration of listeners.

            Jason Schaefer added a comment - Unfortunately the OnDemand service doesn't allow configuration of listeners.

            Gregory Kneller added a comment - - edited

            There is a solution for some of the use cases, with use of of listeners.

            For example, JJUPIN plugin allows to do it very simple by

            1. Setting up a listener for Issue Assigned, Issue Updated, etc...
            2. In the listeners, fire Issue Commented, if a comment is present, by the following SIL-code

            if (getComment()) {raiseEvent("Comment", key, currentUser());}
            

            I have not tested it yet, but it seems to be a solution for the issue, when a comment is added during assignment or updating, but the event was not fired by JIRA

            Gregory Kneller added a comment - - edited There is a solution for some of the use cases, with use of of listeners. For example, JJUPIN plugin allows to do it very simple by 1. Setting up a listener for Issue Assigned, Issue Updated, etc... 2. In the listeners, fire Issue Commented, if a comment is present, by the following SIL-code if (getComment()) {raiseEvent( "Comment" , key, currentUser());} I have not tested it yet, but it seems to be a solution for the issue, when a comment is added during assignment or updating, but the event was not fired by JIRA

            I agree with Max, this is a bug rather than an improvement. With the current behavior, having unique notification settings for different events is pointless and not functional, so certainly a bug.

            Please escalate this and get it fixed.

            Jason Schaefer added a comment - I agree with Max, this is a bug rather than an improvement. With the current behavior, having unique notification settings for different events is pointless and not functional, so certainly a bug. Please escalate this and get it fixed.

              Unassigned Unassigned
              5d4d591c0d1e Eric Rawlins
              Votes:
              94 Vote for this issue
              Watchers:
              66 Start watching this issue

                Created:
                Updated:
                Resolved: