-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Component/s: Notifications - Email
-
None
-
Severity 2 - Major
Issue Summary
When making a REST API request to get notification schemes, and the target notification scheme includes UserCustomField or GroupCustomField notifications, then the responsedoes not include an identity.
Steps to Reproduce
- Create a notification scheme
- Add notification of type "User Custom Field Value" and point to an appropriate field
- Add notification of type "Group Custom Field Value" and point to an appropriate field
- Invoke the REST API for GET /rest/api/3/notificationscheme/{id}(where id references the new scheme). Make sure to use expand=all.
Expected Results
According to the documentation, the response should resemble the following for both UserCustomField and GroupCustomField:
{
...
"notificationSchemeEvents": [
"notifications": [
{
"id": 6,
"notificationType": "GroupCustomField",
"parameter": "customfield_10101",
"field": {
"id": "customfield_10101",
"key": "customfield_10101",
"name": "New custom field",
"untranslatedName": "New custom field",
"custom": true,
"orderable": true,
"navigable": true,
"searchable": true,
"clauseNames": [
"cf[10101]",
"New custom field"
],
"schema": {
"type": "project",
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:project",
"customId": 10101
}
},
"expand": "field"
},
...
]
]
}
Actual Results
The actual result is missing the field details, even though field is in the expand attribute:
{
...
"notificationSchemeEvents": [
"notifications": [
{
"id": 10256,
"notificationType": "GroupCustomField",
"parameter": "customfield_10132",
"expand": "field"
},
...
]
]
}
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available
- is cloned from
-
JRACLOUD-76367 Requesting a notification scheme through the REST API with user notification returns "unknown"
-
- Closed
-
- causes
-
DEVHELP-5986 Loading...