By following link
https://confluence.atlassian.com/jirakb/how-to-set-request-type-when-creating-an-issue-via-rest-api-using-rest-api-2-issue-endpoint-938041214.html
ProjectKey: IT
Request type Name: offers/sales
while setting request type values as "IT/offers/sales"
while creating issue getting resposnse as
{"errorMessages":[],"errors":{"customfield_10900":"Invalid customer request value"}}
request name with out slash working how we need to handle slash in working
Hi @Sai Kiran Konkumatti , @Payne ,
In below thread I have provided a workaround to get the request-type Key using an internal REST API endpoint and therefore without having to access the DB:
Also, you may want to watch and vote for the below Feature Request asking to the requesttype REST API endpoint for JSD to return the Keys:
Cheers,Dario
If you have ScriptRunner installed, or some other way to run Groovy scripts, you can try running the following, setting the issue key to that of an issue with the desired request type.
import com.atlassian.jira.component.ComponentAccessordef issue = ComponentAccessor.issueManager.getIssueByCurrentKey("TIS-709") //Issue with the desired Request Typedef cf = ComponentAccessor.customFieldManager.getCustomFieldObjectByName("Customer Request Type")issue.getCustomFieldValue(cf)
That will return a GUID that represents that request type, e.g.
IT/54b0654e-24b6-477d-a44e-56edcc0ca962
Then you can try using that value when setting your request type.
https://{domain}/rest/api/2/issue/IS-48
while trying with above rest api url that i am able to get response as
"requestType": {"_expands": ["field"],"id": "176",name": "offers/sales","description": "offers/sales",},
while setting id as 176 or offers/sales it saying custom_10900 as invalid value
Right; you don't need the ID; you need the GUID.
but from above rest api we are not getting GUID value
cloud support team has given AO_54307E_VIEWPORTFORM table content with that issue resolved
@Sai Kiran Konkumatti I know but in case you will add any other request type now you can get the Key without having to open a support ticket
Also, can you kindly share the use case for which you cannot use the Jira Service Desk REST API to create the ticket but you have to use the Jira Core REST APIs instead?
Thanks,Dario
by using url (https://YOUR_HOSTNAME/rest/servicedeskapi/servicedesk/servicedesk_id/requesttype) with rest api key value not getting we are able to get only id
It looks like you're new here. Sign in or register to get started.