/
4.3.2.7 Get the Department Information of a Jira User

4.3.2.7 Get the Department Information of a Jira User

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

Param

Description

Required

userNameOrKey

The name or key of a Jira user.

Required

QUERY PARAMS

Param

Description

Required

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" } }