Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

API REST call for all requests

Karl Sjökvist June 26, 2023

Hi everyone!

Is there a way to list ALL requests instead of all connected to a specific user?
https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-request/#api-rest-servicedeskapi-request-get

Kind regards

Karl S

1 answer

1 accepted

3 votes
Answer accepted
Evgenii
Community Champion
June 26, 2023

Hi, @Karl Sjökvist 

If you're Jira Administrator, or Service Desk team member, with permissions to access project, where you want to see Customer Requests of certain type - you can use standard JQL request, like:

project = project_name AND "Customer Request Type" = "Your_Needed_Request_Type_Name"

Documentation:

https://developer.atlassian.com/cloud/jira/service-desk/connect-cookbook/#search-for-an-issue-using-jql

Karl Sjökvist June 26, 2023

@Evgenii Thank you,
Im using searchTerm "project = "Our Servicedesk" AND requestTypeId = 11" with the REST API, but it's still only giving me my own requests.
But i'm a administrator and service desk administrator.

Evgenii
Community Champion
June 26, 2023

@Karl Sjökvist can you clarify, please, if you're using standard search of issues in Jira, with this JQL (not through REST), do you see all required issues?

Karl Sjökvist June 26, 2023

@Evgenii Now im getting "Field 'Customer Request Type' does not exist or you do not have permission to view it." (Im using Jira cloud)

Evgenii
Community Champion
June 26, 2023

Sorry, try to use 

"Request Type" = "Your Request Type Name"

Karl Sjökvist June 26, 2023

@Evgenii that works brilliantly.

But how do I translate this into a API request?

Evgenii
Community Champion
June 26, 2023
Like Karl Sjökvist likes this
Karl Sjökvist June 26, 2023

Big thank you @Evgenii It works!

Like Evgenii likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events