Issue Summary

      Jira Service Management 5.9 introduced the ability to share requests with groups. This feature introduces the "Groups" (com.atlassian.servicedesk:sd-request-groups) custom field to store this data.

      The "Get request type fields" endpoint provides the fields listed on a request type. Most REST API consumers expect this technical/locked custom field to be excluded from the result.

      Steps to Reproduce

      1. Install JSM DC 5.9.0+.
      2. Create a new service desk project.
      3. Send an authenticated HTTP GET request to <jira-base-url>/rest/servicedeskapi/servicedesk/1/requesttype/1/field.

      Expected Results

      Only the request type fields are provided in the response. For example:

      {
          "requestTypeFields": [
              {
                  "fieldId": "summary",
                  "name": "What do you need?",
                  "description": "Tell us what you're looking for. For example, 'put me on the mailing list'.",
                  "required": true,
                  "validValues": [],
                  "jiraSchema": {
                      "type": "string",
                      "system": "summary"
                  }
              },
              {
                  "fieldId": "description",
                  "name": "Why do you need this?",
                  "description": "",
                  "required": true,
                  "validValues": [],
                  "jiraSchema": {
                      "type": "string",
                      "system": "description"
                  }
              }
          ],
          "canRaiseOnBehalfOf": true,
          "canAddRequestParticipants": true
      }
      

      Actual Results

      The "Groups" (com.atlassian.servicedesk:sd-request-groups) custom field is included in the response.

      {
          "requestTypeFields": [
              {
                  "fieldId": "summary",
                  "name": "What do you need?",
                  "description": "Tell us what you're looking for. For example, 'put me on the mailing list'.",
                  "required": true,
                  "validValues": [],
                  "jiraSchema": {
                      "type": "string",
                      "system": "summary"
                  }
              },
              {
                  "fieldId": "description",
                  "name": "Why do you need this?",
                  "description": "",
                  "required": true,
                  "validValues": [],
                  "jiraSchema": {
                      "type": "string",
                      "system": "description"
                  }
              },
              {
                  "fieldId": "customfield_10113",
                  "name": "",
                  "description": "",
                  "required": false,
                  "validValues": [],
                  "jiraSchema": {
                      "type": "array",
                      "items": "group",
                      "custom": "com.atlassian.servicedesk:sd-request-groups",
                      "customId": 10113
                  }
              }
          ],
          "canRaiseOnBehalfOf": true,
          "canAddRequestParticipants": true
      }
      

      Workaround

      Sharing service requests with groups can be disabled by setting the following site-wide feature flag (How to manage dark features in Jira):

      sd.share.request.with.group.disabled
      

      The change will take immediate effect. Existing group request shares will be revoked but can be restored by removing the feature flag.

            [JSDSERVER-15147] Remove JSM "Groups" custom field from REST API endpoint

            Your workaround is a life saver. I've been so confused about this for months now, why this f*cking field keeps popping back in on screens. Now our customer started to flag about safety 'cus they cant accidentally share issues to a whole group. Its such a stupid feature to have implemented for everyone. Really happy for this ticket, did not know about dark features. Thank you!

            Katarina Gustavsson added a comment - Your workaround is a life saver. I've been so confused about this for months now, why this f*cking field keeps popping back in on screens. Now our customer started to flag about safety 'cus they cant accidentally share issues to a whole group. Its such a stupid feature to have implemented for everyone. Really happy for this ticket, did not know about dark features. Thank you!

              c8bcca445054 Benjamin Suess
              1353e2e9fd2f Benjamin S
              Affected customers:
              1 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: