Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Send notification to recipients

Sends a notification (email) to the list or recipients defined in the request.

POST/api/2/issue/{issueIdOrKey}/notify
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

or
AuthorizationBearer token · headerrequired

Personal Access Token — Administration > Profile > Personal Access Tokens

AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Path parameters
issueIdOrKeystringrequired

Issue id or key

Request body
application/json

Notification request

htmlBodystring
restrictRestrictJsonBean
Show properties
groupsGroupJsonBean[]
Show properties
Array of GroupJsonBean
namestring
selfstring<uri>
permissionsPermissionJsonBean[]
Show properties
Array of PermissionJsonBean
descriptionstring
idstring
keystring
namestring
typestring
Allowed:GLOBALPROJECT
subjectstring
textBodystring
toToJsonBean
Show properties
assigneeboolean
groupsGroupJsonBean[]
Show properties
Array of GroupJsonBean
namestring
selfstring<uri>
reporterboolean
usersUserJsonBean[]
Show properties
Array of UserJsonBean
activeboolean
avatarUrlsobject
displayNamestring
emailAddressstring
keystring
namestring
selfstring
timeZonestring
votersboolean
watchersboolean
Responses
204

Returned if adding to the mail queue was successful.

400

Returned if the input is invalid (e.g. missing required fields, invalid values, and so forth).

403

Returned is outgoing emails are disabled OR no SMTP server is defined.

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'http://jira.example.com/rest/api/2/issue/string/notify' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Content-Type: application/json' \
  -d '{
  "htmlBody": "Lorem ipsum <strong>dolor</strong> sit amet, consectetur adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper.",
  "restrict": {
    "groups": [
      {
        "name": "jira-administrators",
        "self": "http://www.example.com/jira/rest/api/2/group?groupname=jira-administrators"
      }
    ],
    "permissions": [
      {
        "EDIT_ISSUE": {
          "id": "EDIT_ISSUE",
          "type": "USER",
          "description": "Ability to edit issues.",
          "name": "Edit Issues",
          "havePermission": true
        }
      }
    ]
  },
  "subject": "Duis eu justo eget augue iaculis fermentum.",
  "textBody": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper.",
  "to": {
    "assignee": true,
    "groups": [
      {
        "name": "jira-administrators",
        "self": "http://www.example.com/jira/rest/api/2/group?groupname=jira-administrators"
      }
    ],
    "reporter": true,
    "users": [
      {
        "active": true,
        "avatarUrls": "http://www.example.com/jira/secure/projectavatar?size=xsmall&pid=10000",
        "displayName": "Fred F. User",
        "emailAddress": "fred@example.com",
        "key": "fred",
        "name": "Fred",
        "self": "http://www.example.com/jira/rest/api/2/user?username=fred",
        "timeZone": "Australia/Sydney"
      }
    ],
    "voters": true,
    "watchers": true
  }
}'
Response
Returned if adding to the mail queue was successful.

Was this page helpful?