Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-85073

/rest/api/3/issue/{issueIdOrKey}/notify API Sends multiple email notification on same issue

      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.

            [JRACLOUD-85073] /rest/api/3/issue/{issueIdOrKey}/notify API Sends multiple email notification on same issue

            There are no comments yet on this issue.

              Unassigned Unassigned
              a60056aed681 Rosa Faghihi
              Affected customers:
              32 This affects my team
              Watchers:
              12 Start watching this issue

                Created:
                Updated: