Forums

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

How can I get customer requests by group?

Paolo Di Bello August 28, 2019

The following rest API is to get customer requests by an organizationId 


{{protocol}}
://{{host}}/{{basePath}}rest/servicedeskapi/request?organizationId={{organizationId}}&serviceDeskId={{serviceDeskId}}


This is the official documentation to get the customers request:

Get customer requests Jira Service Desk Documentation
 

My questions is:

How can I  get customer requests by a specific group the user is in? 

As far as I can tell there nothing about getting requests by group on the documentation.


Can I use some other way using the other JIRA REST API even if I am using Jira Service Desk? Can one use Jira rest apis to work on jira service desk?

 


Something along the lines would be cool but as far as I can there is not the option in the documentation. 


{{protocol}}://{{host}}/{{basePath}}rest/servicedeskapi/request?group={{groupId}}&serviceDeskId={{serviceDeskId}}



I tried to get the users by a group but can I get each customer's request?

{{protocol}}://{{host}}/{{basePath}}rest/api/3/group/member?groupname={{groupname}} 


Thanks.

1 answer

1 vote
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 30, 2019

Ciao @Paolo Di Bello ,

I am not sure this is gonna work for Service Desk customers but it is worth trying. 

You can try to use the Jira Core 'search' endpoint to search for:

project = KEY AND reporter in membersOf("GROUP")

 

Therefore, the complete REST API call would be something like:

{{protocol}}://{{host}}/{{basePath}}rest/api/3/search?jql=project%20%3D%20{{JSD_PROJECT_KEY}}%20AND%20reporter%20in%20membersOf("{{GROUPNAME}}")

 

Please test this and let me know if it helps.

 

Cheers,
Dario

PaoloDiBello August 30, 2019

I had already found a solution to this.
Thank you anyway. 

At least now people looking for an answer can get what they need. 

Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 3, 2019

Hi @Paolo Di Bello ,

Thanks for your quick reply.

Could you kindly paste your solution as well, so that it can be useful to the other members of the community in case they will be searching for anything similar?

 

 

Ciao,
Dario

Suggest an answer

Log in or Sign up to answer