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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • 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

How do I extract all issue types from a project using the REST API?

Am currently using:

rest/servicedeskapi/servicedesk/{id}/requesttype

But this only returns "Service Request" request types. I want to pull back all the Request types we used, including "Incidents" and "Service Request with Approvals".

2 answers

0 votes

Hi @Harry Anderson ,

For that you'll use getProject

/rest/api/2/project/{projectIdOrKey}

and then parse for issueTypes

I am new to the REST stuff, but it looks like you have the wrong URL. The documentation here looks like it has two different URL's. One that matches yours, but a different one in the actual code examples in the Requesttype section.

I think the correct format is /rest/servicedeskapi/requesttype or /rest/servicedeskapi/{id}/requesttype.

edwin Community Leader Apr 18, 2019

Correct, one returns issue types and the other request types.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

4,135 views 5 15
Join discussion

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