Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Not able to set Request type as part of create issue Rest API

DiLiP I'm New Here Nov 23, 2020

Hi All....  I stumbled into an Issue when I started to explore Create Issue rest API

Usecase : I need to create an Issue in with Request Type value

With lots of search over the internet, I was finally got to know that, to set the value for Request Type field, the value should be in the format Projectkey/requestTypename

In my case, the Request field Id is : customfield_10010 (First I tried create the Issue in UI by setting the Request value and then did a getIssue API call to find the customefield value) 

I have created some testing Request types and mapped it to the proper Issue type which Im setting during create Issue.

Following is the request Im triggering from postman

{ "fields": { "summary": "Ticket With Request Type", "customfield_10039": "SUBS_001", "issuetype": { "id": "10001", "name":"Submit a request or incident" }, "customfield_10040": "TICKET_001", "customfield_10010":"ob/Custom_Req_Type_001", "project": { "id": "10000" }, "description": { "type": "doc", "version": 1, "content": [ { "type": "paragraph", "content": [ { "text": "We are Setting the request type while creating ticket", "type": "text" } ] } ] } }}


I have highlighted the custom field in the above request which is value for Request Type.


After I triggered the API, I got the Success response with id, Key and self

Now When Open the Issue in Jira, the field Request type is not set with any value. Please take a look at the following screenshot for highlighted section



Now If I Edit the field Request Type then I'm able to see the drop-down values which is having the same which I sent in the request. Please take look at the following screenshot for highlighted section 



Is there anything I'm missing here like any setting or permission or Is there any different way using which I can set the value for the field Request Type

Thanks In Advance


1 answer

1 accepted

0 votes
Answer accepted

Hello @DiLiP,

Welcome to Atlassian Community!

Thank you for sharing all the details and screenshots of the issue.

When using Jira, there are different REST APIs for Service Management, Software, and Business projects and I can see that you are using the API to create an issue for Software/Bussiness projects.

The API to create a request in Service Management is different because it's the only type of project that contains fields such as request types and request participants. 

Please, use the endpoint below:

curl --request POST \

  --url '' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
  "requestParticipants": [
  "serviceDeskId": "10",
  "requestTypeId": "25",
  "requestFieldValues": {
    "summary": "Request JSD help via REST",
    "description": "I need a new *mouse* for my Mac"

If you face any issues or have any other questions, please let us know. 


DiLiP I'm New Here Nov 30, 2020

Hi Angelica

Thank you So much for you response. The provided information very helpful.

Just one more question may be not related to this thread but Just wanted to know...

I wanted to assign or add Watchers to an issue from the external system. With all the User APIs, I got to know that, we have to pass the user accountId.... Is there any API where I can get the user AccountID by passing the username or so... 

Thanks for your Time

Hello @DiLiP,

I'm glad that I could help!

In order to get their accountID, you can use the "Find users and groups" API:

curl --request GET \
--url '' \
--user '' \
--header 'Accept: application/json'

There is a second option that you can use the REST API call below directly in the browser:

Hope this helps!

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

163 views 0 4
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you