Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,366,726
Community Members
 
Community Events
168
Community Groups

How to get all request types using rest api of jira cloud

In JIRA project settings we have request types menu

by using JIRA rest API how we need to get request types.

if there is any documentation available let me know

3 comments

Dario B Atlassian Team Jul 02, 2019

Hi @Sai Kiran Konkumatti ,

I am pretty sure you have already found the answer by searching Google by now, but I am adding a reply anyway in case anyone else might be searching the community having the same question.

In order to do so you need to use the Jira Service Desk Cloud REST API endpoint /rest/servicedeskapi/requesttype.

This endpoint is documented in the below page:

 

Cheers,
Dario

@Dario B Hello,

I am using the same endpoint but I am getting following response:


{"errorMessages":["OAuth 2.0 is not enabled for this method."]}

 

Can you please help.

Thanks

Dario B Atlassian Team Jul 17, 2020

Hello @Talha Ishtiaque ,

Welcome to the Atlassian Community!

As the error message says, Oauth2 is not enabled yet for that endpoint. I have proceeded opening a feature request for this:

You may want to vote and watch the above feature request so that you will get notified in case of any update. The  feature will be addressed according to the Implementation of New Features Policy.

 

Finally, for the future, please avoid answering an old thread (from more than one year ago). You will have better chances to get a reply if you start a new thread.

 

Cheers,
Dario

Did not work for me on JIRA Cloud with any of the specified URLs above.

In the end I had to use `/rest/servicedeskapi/servicedesk/PROJECT_KEY/requesttype`, but that doesn't even seem to give the correct string that is required to set the request type when POST-ing a new issue...

Comment

Log in or Sign up to comment