How to get custom user avatars?

Ainesh Ravi July 26, 2012

Currently I can write a php curl statement to gather all of the avatarUrls from the json output. The problem is that right now unless i physically log in on my browser, if someone had a custom avatar that they uploaded, only the default avatar would get returned to me. Is there a different authentication system that would allow me to grab the custom avatarUrls, or any other way to fix this issue?

1 answer

0 votes
TimT
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 27, 2012

For privacy reasons, JIRA only displays avatars to logged-in users. You can authenticate the curl request in your script to get the proper images.HTTP basic authentication with the username and password of any user with JIRA access should work just fine.

You can use HTTP basic authentication with PHP curl by setting the CURLOPT_USERPWD option (see for example this StackOverflow answer).

Suggest an answer

Log in or Sign up to answer