Forums

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

Creating a ticket in a ServiceDesk using REST API

Stian Bentsen Sveen
Contributor
September 27, 2018

Hi, this might be a stupid question, but im an API-virgin, never used it before in any context.

Im trying to learn how to use it now and i've finally been able to create a request in my test service desk using the API.

The only downside is by using the service desk API im also forced to only use fields that are present in the request type I want to create.

The problem with this is that we have several fields that we only use internally that I would like to use when raising this request via API.

Do I need to add all these fields and hide them with a preset value in the request form to be able to do this or can I use the normal JIRA API to create the ticket in the project (even though its a service desk)?

If thats possible, I guess I wont be able set request type on the issue, but I can solve that with an automation that sets it on ticket creation.

 

 

1 answer

1 accepted

2 votes
Answer accepted
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 27, 2018

Hello Stian,

Actually, JIRA Service Desk is only an Add-on that runs in the JIRA Core application.

That being said, the API call to create a new issue is the same on both applications, as if you were creating an internal issue and then adding the request type as you mentioned.

Please, refer to the documentation below to know more about REST API Calls on JIRA:

JIRA REST API Documentation

Stian Bentsen Sveen
Contributor
September 30, 2018

Hi Petterson,

Thanks for the reply!

I may have jumped the gun a bit quick, because I figured it out after a bit more testing, with the correct request type and everything.

Br,

Stian

Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 1, 2018

You are welcome, Stian!

Have a nice week and let us know if you need anything else.

Suggest an answer

Log in or Sign up to answer