Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Creating ticket with specified requestType through API

Bartosz Szeląg
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 31, 2023

Hello,

I would like to ask whether its possible to specify requestType(not issueType) when u re creating ticket through jira api. Cause after creation u can only change it via "move" in gui. I have no problems with settings issueType via Api. Would be wonderful if u could show me example of such api call.

Thanks in advance

2 answers

2 votes
Mikael Sandberg
Community Champion
August 31, 2023

Hi @Bartosz Szeląg,

Welcome to Atlassian Community!

Yes, it is possible to set the request type via the API, what you need to know when doing it is the service desk ID and the request type ID. Both of these you can find if you go to the request type in the portal, the URL would look something like this:

/servicedesk/customer/portal/1/group/<service desk Id>/create/<request type Id> 

Mark Segall
Community Champion
August 31, 2023

To add to this.  You'd want to use the Service Desk API which is mimicking the experience of creating a request via the portal.  If you are intending to create a request along with some additional information that is only visible to the agent, you would probably want to take these steps:

  1. Create the issue through API using the Jira Software API
    NOTE - You cannot set the request type on issue creation when using the Jira Software API so you need step 2
  2. Make a second API call to edit the issue you created in step 1 and edit the Request Type field
Like # people like this
0 votes
Bartosz Szeląg
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 1, 2023

Okay i have servicedeskId and requestId, but could u give me example of such api call, or doc site where i can find one?

Mikael Sandberg
Community Champion
September 1, 2023

Here you go, use the Create customer request endpoint.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events