NOTE: This bug report is for JIRA Service Desk Server. Using JIRA Service Desk Cloud? See the corresponding bug report.

      Request Type Key Creation Inconsistency

      Steps to Reproduce:

      1. Create a Service Deks Project.
      2. Navigate to Project Administration > Request Types
      3. Create a Request Types using the provided Button with name E.g. Monitor
      4. Then, do the same but using the available Public Experimental REST API

      Expected Solution:

      • Both will have the same format of Request Type Key.

      Actual Result:

      There will be a difference between the Request Type that is created using REST API or from GUI. This information could be retrieved by using PRIVATE or INTERNAL REST API of JIRA Service Desk:

      GET /servicedesk/1/pages/settings/requesttypes/{projectKey}
      1. Experimental REST API
        {
          "projectKey": "ISD",
          "projectId": "10001",
          "portalKey": "isd",
          "requestTypes": [
            {
              "id": 20,
              "key": "rest2",
              "name": "REST",
              "description": "Please tell us clearly the problem you have within 100 words.",
              "descriptionHtml": "<p>Please tell us clearly the problem you have within 100 words.</p>",
              "projectId": 1,
              "issueTypeId": 10006,
              "issueTypeName": "",
              "parentKey": "isd",
              "callToAction": "REST",
              "intro": "REST",
              "introHtml": "<p>REST</p>",
              "icon": 10527,
              "order": 0
            },
         	...
        
      2. Project GUI
        	<continue from above>
        {
            {
              "id": 18,
              "key": "9cf89dda-2bd2-41e3-9ce9-9deb621fe4a9",
              "name": "Monitor",
              "description": "",
              "descriptionHtml": "",
              "projectId": 1,
              "issueTypeId": 10007,
              "issueTypeName": "",
              "parentKey": "isd",
              "callToAction": "Monitor",
              "intro": "",
              "introHtml": "",
              "icon": 10532,
              "order": 2
            },
            ...
        

      Notes:

      It looks like the REST API is still using Old Method which is RequestTypeInternalManagerScala

            [JSDSERVER-4916] Request Type Key Creation Inconsistency

            SET Analytics Bot made changes -
            UIS Original: 2 New: 3
            Marc Dacanay made changes -
            Labels Original: affects-server cqt New: affects-server cqt ril
            Marc Dacanay made changes -
            Remote Link New: This issue links to "Internal ticket (Web Link)" [ 955001 ]
            Cathy S made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 893808 ]
            SET Analytics Bot made changes -
            UIS Original: 1 New: 2
            SET Analytics Bot made changes -
            UIS Original: 2 New: 1
            SET Analytics Bot made changes -
            UIS Original: 1 New: 2
            SET Analytics Bot made changes -
            UIS Original: 7 New: 1
            SET Analytics Bot made changes -
            UIS Original: 1 New: 7
            SET Analytics Bot made changes -
            UIS Original: 0 New: 1

              Unassigned Unassigned
              jrahmadiputra Julian (Inactive)
              Affected customers:
              11 This affects my team
              Watchers:
              7 Start watching this issue

                Created:
                Updated: