How to get all issues by project key and issue type using REST api

Hi Experts,

Kindly correct my REST api calls. I just want to get all the issues by project key and issue type(filter). I tried but it is not working. please, someone, help me to correct this REST api call.

REST API:

http://server/rest/api/2/search?jql=project=UC&issuetypeNames=Test&expand=projects.issuetypes.fields&startAt=0&maxResults=500

Have you tried this using the postman collection from the Jira cloud rest API? https://developer.atlassian.com/cloud/jira/platform/rest/#introduction

1 Like

The JQL you want is probably “project=UC AND issuetype=Test”.
The expand parameter value should probably be “projects,issuetypes,fields”.
Don’t forget to URL-encode your query string parameters.

`http://server/rest/api/2/search?jql=project%3DUC%20AND%20issuetype%3DTest&expand=projects%2Cissuetypes%2Cfields&startAt=0&maxResults=500`
1 Like