We have a system that connects to Jira Cloud and one of the use cases requires the creation of a Service Desk Issue with a specific request type. Up till now we have gone through the activeobjects.xml from the backup to get the uuid/key of the request type. We want to programmatically set the request type based off a list of current request type uuids.
"/rest/servicedesk/{serviceDeskId}/servicedesk/request/{issueId}/request-types"
The above API allows us to get a list of request types with the key, however, it is an internal API and, therefor, cannot be used by a plugin (without username and password).
"/rest/servicedeskapi/servicedesk/5/requesttype/1"
This is the offical API for Service Desk to get request types, however, it does not return the request type's key.
Any advice would be greatly appreciated.