/
4.2.2.8 Get the Department Information of a Jira User
4.2.2.8 Get the Department Information of a Jira User
GET /rest/orgwise/2/member/{userNameOrKey}/headers
Available in OrgWise v5.0.0 or later.
DESCRIPTION
Get the headers of a Jira user by username or key. Headers are including the supervisor of the member, the assignee of the member’s main department, and the leader of the members' main department.
MEDIA TYPE
application/json
PATH PARAM
Param | Description | Required |
---|---|---|
userNameOrKey | The user name or key of a Jira user. | Required |
RESPONSE
{
"code": 0,
"msg": "Success",
"data": {
"supervisor": {
"id": 2,
"workNumber": "E3",
"gender": "UNKNOWN",
"jiraUser": {
"userKey": "JIRAUSER10100",
"avatar": "https://www.gravatar.com/avatar/14e93c442f806bc2497946bac881be94?d=mm&s=16",
"userName": "pluto",
"displayName": "Pluto Po",
"emailAddress": "pluto@p.com",
"isActive": true
},
"mainDepartment": {
"id": 2,
"no": "D2",
"name": "DEV",
"type": "SUB_DEPARTMENT",
"createTime": "2022-09-01 11:42:19",
"parent": 1
},
"createTime": "2022-09-01 10:43:01.655"
},
"departmentAssignee": {
"id": 2,
"workNumber": "E3",
"gender": "UNKNOWN",
"jiraUser": {
"userKey": "JIRAUSER10100",
"avatar": "https://www.gravatar.com/avatar/14e93c442f806bc2497946bac881be94?d=mm&s=16",
"userName": "pluto",
"displayName": "Pluto Po",
"emailAddress": "pluto@p.com",
"isActive": true
},
"mainDepartment": {
"id": 2,
"no": "D2",
"name": "DEV",
"type": "SUB_DEPARTMENT",
"createTime": "2022-09-01 11:42:19",
"parent": 1
},
"createTime": "2022-09-01 10:43:01.655"
},
"headOfDepartment": {
"id": 3,
"workNumber": "E4",
"gender": "UNKNOWN",
"jiraUser": {
"userKey": "JIRAUSER10101",
"avatar": "https://www.gravatar.com/avatar/b6d57f4e261cda44c2260ded96f165ae?d=mm&s=16",
"userName": "poppy",
"displayName": "Poppy Po",
"emailAddress": "poppy@p.cpm",
"isActive": true
},
"mainDepartment": {
"id": 1,
"no": "D1",
"name": "SHDSD",
"type": "COMPANY",
"createTime": "2022-09-01 10:33:46"
},
"createTime": "2022-09-01 10:43:14.421"
}
}
}
, multiple selections available,