Is there any REST API or other methods to get Account ID of others automatically (by Scriptrunner)?
Hi Kannpitcha,
Thank you for your question.
I can confirm that to get the account of a user, you can navigate to the URL of <JiraBaseURL>/people/search inside of Jira to find a user's account ID.
If you wish to look up the accountId in a script, you can call the Jira Find Users API, which Atlassian provides to find a user.
We have an example script that shows how to do this here on line 25
This example shows how to call the Find Users API to search for a user and get their accountId and should help you to achieve your requirements.
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kannpitcha,
You are welcome and I am glad this helped you to solve your problem :)
Regards,
Kristian
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.