-
Bug
-
Resolution: Unresolved
-
Low
-
Severity 3 - Minor
-
Issue Summary
The /rest/api/3/issue/{issueIdOrKey}/notify API sends multiple email notifications for the same issue to users who belong to several recipient categories.
For instance, if someone is both the assignee and in watcher list, they will receive two email notifications for the same issue. This has led customers to believe this is a bug, as they expect to receive only one notification per issue, regardless of how many recipient categories they belong to. As a result, this causes dissatisfaction because users feel overwhelmed by redundant notifications.
Steps to Reproduce
To reproduce the issue, add a user to multiple recipient categories(watcher, assignee, voter), and run the following API:
curl --request POST \ --url 'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}/notify' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "htmlBody": "The <strong>latest</strong> test results for this ticket are now available.", "restrict": { "groupIds": [], "groups": [ { "name": "notification-group" } ], "permissions": [ { "key": "BROWSE" } ] }, "subject": "Latest test results", "textBody": "The latest test results for this ticket are now available.", "to": { "assignee": true, "groupIds": [], "groups": [ { "name": "notification-group" } ], "reporter": true, "users": [ { "accountId": "user-account-id", "active": false } ], "voters": true, "watchers": true } }'
Expected Results
We expect users to receive one email notification only when they belong to multiple recipient categories for the same issue.
Actual Results
Users are receiving multiple email notifications on an issue if they belong to multiple recipient categories for the same issue.
Workaround
There is no workaround at this time.