Usernames are no longer supported by the jira rest api, but I was previously using this to then sort my activity stream using the stream=user+IS+username filter.
How do I do this now? The account Id doesn't work, nor does email.
Help!
Hi @Anthony Wood ,
I just tried this call and it worked for me:
https://[domain name].atlassian.net/rest/api/latest/user/search?query=[user email]
Make sure that you don't have spaces in the URL (it happened to me the first time I tried and got a 404 error)
Are you using a different call?
Carlos
Sorry nah, the jira rest api I'm having no problems with. You can query by email or account Id and it works fine.
It is the activity stream api I'm trying to filter:
https://[domain name].atlassian.net/activity?maxResults=1000&streams=user+IS+username&streams=update-date+BETWEEN+[startTicks]+[endTicks]&os_authType=basic
It is the username of myself and other users I do not know. Previously using your rest api call above would give me the username as part of the response. This has now been removed, so I don't know how to filter the activity stream anymore.
I've tried substituting the email address, email and accountId into the activity stream api url, but no luck :(
Thanks a lot for your help by the way
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.