Hello,
I'm hitting this api to get all issues for those 3 groups: HR, DEV and Engineering.
https://test.atlassian.net/rest/api/2/search
"jql":"(assignee in membersOf('HR') OR assignee in membersOf('DEV') OR assignee in membersOf('Engineering')) AND created >= 2020-11-26 AND created < 2020-11-27 OR updated >= 2020-11-26 AND updated < 2020-11-27 ORDER BY created DESC".
But in the responce i can't get the Group of witch the assignee is in.
for example I want to know that the assigned member of this issue is in DEV for example.
But this field does not seem to be present.
should i add something to the expand field "expand":["changelog"] ?
Thank you.
As @Nic Brough -Adaptavist- mentioned above you need to make another call to get that information in your code.
Try this end point.
/rest/api/3/user?accountId=ACCOUNTID&expand=groups
Here is the curl command to test it quickly.
curl -i -X GET \
-H "Authorization:Basic ACCESSTOKEN" \
'https://JIRAURL/rest/api/3/user?accountId=ACCOUNTID&expand=groups'
Just replace the ACCESSTOKEN, JIRAURL and the ACCOUNTID.
I hope it helps.
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Group memberships of a user are not issue data.
You'll need to read the user and use another call to question the groups they belong to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.