Display profile image from jira endpoint

Deeksha Gupta October 6, 2019

Hi,

From jira enpoint I am fetching all details of user to display it in bot..While hittiing the endpoint in browser got this result:

assignee":{"self":"https://alm.andritz.com/jira/rest/api/2/user?username=grzgab17","name":"grzgab17","key":"grzgab17","emailAddress":"Gabriele.Gruber@andritz.com","avatarUrls":{"48x48":"https://alm.andritz.com/jira/secure/useravatar?ownerId=grzgab17&avatarId=29901","24x24":"https://alm.andritz.com/jira/secure/useravatar?size=small&ownerId=grzgab17&avatarId=29901","16x16":"https://alm.andritz.com/jira/secure/useravatar?size=xsmall&ownerId=grzgab17&avatarId=29901","32x32":"https://alm.andritz.com/jira/secure/useravatar?size=medium&ownerId=grzgab17&avatarId=29901"},"displayName":"Gruber Gabriele","active":true,"timeZone":"Europe/Vienna"}

When I am trying to display profile picture using assignee.avatarUrls then its giving object Object..so how to extract image from this and make it display.

0 answers

Suggest an answer

Log in or Sign up to answer