floralvikings / jira-connector

NodeJS Wrapper for the Jira REST API
http://floralvikings.github.io/jira-connector/
MIT License
373 stars 180 forks source link

404: trying to get the avatars of the user /rest/api/2/user/avatars?username='username' #198

Closed Farhan-Haseeb closed 4 years ago

Farhan-Haseeb commented 5 years ago
jira.user
        .getAvatars({ username: "syed.farhan" })
        .then(data => {
          console.log(data, "avatar data");
        })
        .catch(err => {
          console.log(err, "err is here");
        });

I am using jira.user.getAvatars function to get profile image of a user but I think the api is deprecated. Couldn't find any documentation on /rest/api/2/user/avatars?username='username' of jira's official REST APIs docs

MrRefactoring commented 4 years ago

Hi, @Farhan-Haseeb! As I can see, this method has disappeared from the documentation. You may need to find another method to get user avatars.