Need help creating an application in Jira via Curl

I form the application in Jira through Curl.
I pass this text:

{
    "fields": {
       "project":{"id": "10101"},
       "issuetype":{"id":"10100"},
       "components":[{"id":"10300"}],
       "assignee":{"name":"skozachenko"},
    "reporter":{"name":"anikonov"},
    "customfield_10100" : [{"name":"anikonov"}],
     "summary":"Test",
       "description":"Test"
   }
}

Формируется заявкаСнимок1.JPG

I want to add a field "Request type".

Which field name should I pass through Curl and which id?

изображение.png

1 answer

0 votes

Request type is a Service Desk system field, not a simple custom field.  You need to use the JSD API to get to it.  See https://developer.atlassian.com/cloud/jira/service-desk/rest/

I added the "requestTypeId" field. But I got the error back.
{"errorMessages": [], "errors": {"requestTypeId": "Field 'requestTypeId' can not be set. It is not on the appropriate screen, or unknown."}}

It's not a simple field, it's an indicator of the type of request that a customer is raising in JSD.  Have a closer look at the Request calls in the API - you'll see it's not something you can just throw on a screen and edit.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,063 views 6 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot