注意 |
---|
已弃用,使用 4.2.2.6 获取指定JIRA用户的成员信息 替代。 |
请求类型
- GET
请求地址
- /rest/orgwise/1/employee/info?userNameOrKey={userNameOrKey}&extendImage=true{extendImage}
媒体类型
- application/json
查询参数
参数 | 说明 | 必须 |
---|---|---|
userNameOrKey | 用户名或用户key,用户唯一标识 | 必须 |
extendImage |
自定义字段类型为图片的字段信息是否返回,默认不返回。当extendImage为true时,返回内容带有图片数据。 | 非必须 |
返回示例
代码块 | ||||||
---|---|---|---|---|---|---|
| ||||||
{
"code": 0,
"msg": "Success",
"data": {
"id": 65,
"key": 65,
"deptId": 23,
"depts": "23",
"onJob": true,
"employeeName": "admin",
"email": "admin@local.int",
"jiraUserKey": "JIRAUSER10000",
"workNumber": "E66",
"sex": "MALE",
"roles": "2",
"jiraUser": {
"userKey": "JIRAUSER10000",
"avatar": "http://192.168.80.15:31786/secure/useravatar?size=xsmall&avatarId=10350",
"userName": "admin",
"displayName": "admin",
"emailAddress": "admin@local.int"
},
"department": {
"id": 23,
"key": 23,
"deptNo": "D23",
"deptName": "财务部",
"parentDeptName": "行政中心",
"parentDeptId": 29,
"parentDept": {
"id": 29,
"key": 29,
"deptNo": "D29",
"deptName": "行政中心",
"type": "DEPARTMENT",
"parentDeptName": "奥格瓦兹科技有限公司",
"parentDeptId": 9,
"createTime": "2021-08-13 03:24:48",
"rootDepartmentId": 9,
"delete": false
},
"createTime": "2021-08-13 03:16:38",
"rootDepartmentId": 9,
"delete": false
},
"mainDeptFlag": false,
"superior": {
},
"createTime": "2021-09-16 03:05:37"
}
} |
...