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

Jira Service Desk Requests API

Avinash July 8, 2021

Hi,

I am using Jira Service Desk 4.13.3 and I am experiencing some weird results and would appreciate some assistance.

 

The following two endpoints do not yield the same results based on permissions:

1 - https://docs.atlassian.com/jira-servicedesk/REST/4.13.3/#servicedeskapi/request-getMyCustomerRequests

2 - https://docs.atlassian.com/jira-servicedesk/REST/4.13.3/#servicedeskapi/request-getCustomerRequestByIdOrKey

 

My scenario is as follows:

1 - The ticket is shared with organizations/participants and both apis return the results correctly.

2 - I dont want to have the user part of the organizations/participants in order to query the apis above to get the results. If the user is has browse permission and the service desk agent permission as well as a service desk license they should still see the ticket from both api calls.

However 
https://docs.atlassian.com/jira-servicedesk/REST/4.13.3/#servicedeskapi/request-getMyCustomerRequests does not return my ticket in its results while https://docs.atlassian.com/jira-servicedesk/REST/4.13.3/#servicedeskapi/request-getCustomerRequestByIdOrKey does.

These both seems to be the same request with the latter just specifying the ticket id directly.

Why does scenario 2 not work for endpoint 1 ?

 

Regards,

Avinash

1 answer

0 votes
Alex van Vucht (GLiNTECH)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 8, 2021

The getMyCustomerRequests only returns issues where the caller is either the Reporter or the Request Participant. If a user has the browse permission and a service desk agent license, then the user can use the https://docs.atlassian.com/software/jira/docs/api/REST/8.13.3/#api/2/filter and https://docs.atlassian.com/software/jira/docs/api/REST/8.13.3/#api/2/search methods to obtain requests of interest.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events