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.
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
I had already found a solution to this.
Thank you anyway.
At least now people looking for an answer can get what they need.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.