Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

GET /rest/orgwise/3/member/{userNameOrKey}/department?getAllParents={getAllParents}

DESCRIPTION

Get the department information of a Jira user by the username or key .

MEDIA TYPE

  • application/json

PATH PARAM

Param

Description

Required

userNameOrKey

The name or key of a Jira user.

Required

QUERY PARAMS

Param

Description

Required

  • getAllParents

Whether to get all parent departments, not returned by default. When getAllParents is true, return all parent departments of the member's department.

Optional

RESPONSE

{
    "code": 0,
    "msg": "Success",
    "data": {
        "id": 6,
        "no": "D6",
        "name": "IT",
        "type": "DEPARTMENT",
        "parent": 3,
        "parentDepartment": [
            {
                "id": 1,
                "no": "D1",
                "name": "Finance & IT",
                "type": "COMPANY",
                "createTime": "2022-06-07 10:45:29"
            }
        ],
        "rootDepartmentId": 1,
        "createTime": "2022-06-07 11:21:42.81"
    }
}

  • No labels