How to get user address in perl?

Kwokman Chung October 7, 2014

How can i get the email address of a user via Jira in perl? Thanks.

1 answer

1 accepted

0 votes
Answer accepted
Daniel Wester
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.
October 7, 2014

It should be available through the rest api:

https://docs.atlassian.com/jira/REST/latest/#d2e4676

{
    "self": "http://www.example.com/jira/rest/api/2/user?username=fred",
    "name": "fred",
    "emailAddress": "fred@example.com",
    "avatarUrls": {
        "24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
        "16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
        "32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred",
        "48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred"
    },
    "displayName": "Fred F. User",
    "active": true,
    "timeZone": "Australia/Sydney",
    "groups": {
        "size": 3,
        "items": [
            {
                "name": "jira-user",
                "self": "http://www.example.com/jira/rest/api/2/group?groupname=jira-user"
            },
            {
                "name": "jira-admin",
                "self": "http://www.example.com/jira/rest/api/2/group?groupname=jira-admin"
            },
            {
                "name": "important",
                "self": "http://www.example.com/jira/rest/api/2/group?groupname=important"
            }
        ]
    },
    "expand": "groups"
}
Kwokman Chung October 7, 2014

Thanks!

Suggest an answer

Log in or Sign up to answer