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.

          Form Name

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

            Marc Dacanay made changes -
            Labels Original: ltsr

            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!
            Marc Dacanay made changes -
            Labels New: ltsr
            Timur Omelchenko made changes -
            Fix Version/s Original: 5.15.0 [ 107090 ]
            Fix Version/s New: 5.15.2 [ 108100 ]
            Satej Mirpagar made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            Thomas Bowes (Inactive) made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 878182 ]
            Benjamin Suess made changes -
            Status Original: In Progress [ 3 ] New: Waiting for Release [ 12075 ]
            Benjamin Suess made changes -
            Fix Version/s New: 5.15.0 [ 107090 ]
            Benjamin Suess made changes -
            Assignee New: Benjamin Suess [ c8bcca445054 ]
            Benjamin Suess made changes -
            Status Original: Short Term Backlog [ 12074 ] New: In Progress [ 3 ]

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

                Created:
                Updated:
                Resolved: