任务接口

任务查询 rest.bnAPI.task.list

描述

获取任务详细信息

输入参数

id 字段名 类型 描述
1 projectId(必填) Integer 群组id
2 conditions(必填) String 查询条件
3 columns(必填) String 群组列
4 orderByColumnName String 根据这个群组列进行排序
5 pageNum String 页码
6 pageSize String 分页大小

参数示例:

condition:“column_908,column_907,column_947”

columns: "column_908=909,column_907='dpo001'";

返回结果

id 字段名 类型 描述
1 code Number 结果代码:0 成功
2 error_message String 错误信息
3 taskDoList Map<String, Object> 任务分页信息

json返回示例:

{
    "response":{
        "code":0,
        "map":{
            "taskDoList":"{"result":"success","currPageNum":1,"total":"3","data":{"customTags":[{"id":"23499","name":"发大水","weight":1,"pinyin":["fa","da","shui"],"pinyinFirst":["f","d","s"]},{"id":"23500","name":"大会上","weight":1,"pinyin":["da","hui","shang"],"pinyinFirst":["d","h","s"]}],"taskList":[{"createUserId":110131769,"isStar":false,"contents":[{"moduleType":33,"sortNum":7,"colId":37691,"value":"2018-04-23 10:35"},{"moduleType":32,"sortNum":6,"colId":37690,"value":"2018-04-23 10:34"},{"moduleType":30,"sortNum":37,"colId":37846,"value":"2018-04-20 00:00"}],"isRead":true,"id":3,"gmtCreate":"2018-04-17 20:57:22","deadline":"2018-04-20 00:00:00","status":0},{"createUserId":2224,"isStar":false,"contents":[{"displayValue":"紧急","moduleType":5,"sortNum":16,"optionColor":"#ff9900","colId":37706,"value":37708},{"moduleType":11,"sortNum":23,"colId":37722,"value":"2018-04-12 00:00"},{"displayValue":"选项2","moduleType":17,"sortNum":29,"colId":37744,"value":37746},{"moduleType":1,"sortNum":8,"colId":"37692","value":"[{\"number\":\"1\",\"total\":\"1\",\"cost\":\"10\",\"optionId\":\"37693\",\"title\":\"选项1\"}]"}],"isRead":true,"id":1,"gmtCreate":"2018-04-12 14:16:44","deadline":"2018-04-12 00:00:00","status":3}]},"pageSize":10,"totalPageNum":1}"
            "result":"success"
        }
    }
}

插入任务 rest.bnAPI.task.create

描述

插入任务详细信息

输入参数

id 字段名 类型 描述
1 projectId String 群组id
3 contents String 任务内容
6 userId String 用户id

content参数说明:

例如:"[{"colId":"8612","moduleType":"25","value":"更新过的标题"},{"colId":"8613","moduleType":"26","value":"110119808"},{"colId":"8614","moduleType":"27","value":"0"}]"

colId 列id
moduleType 列类型定义
value 任务对应列的值

返回结果

id 字段名 类型 描述
1 code Number 结果代码:0 成功
2 error_message String 错误信息
3 createResult Boolean 是否创建成功
{   
    "response":{
        "code":0,
        "map":{
            "taskDoList":"ture"
            "result":"success"
        }
    }
}

更新任务 rest.bnAPI.task.update

描述

插入任务详细信息

输入参数

id 字段名 类型 描述
1 projectId String 群组id
2 contents String 任务内容
3 userId String 用户id
4 taskId String 任务id

content参数说明:

例如:"[{"colId":"8612","moduleType":"25","value":"更新过的标题"},{"colId":"8613","moduleType":"26","value":"110119808"},{"colId":"8614","moduleType":"27","value":"0"}]"

colId 列id
moduleType 列类型定义
value 任务对应列的值

返回结果

id 字段名 类型 描述
1 code Number 结果代码:0 成功
2 error_message String 错误信息
3 updateResult Boolean 是否创建成功
 {
       "response":{
        "code":0,
        "map":{
            "updateResult":"ture"
            "result":"success"
        }
    }
}

删除任务 rest.bnAPI.task.delete

描述

删除任务详细信息

输入参数

id 字段名 类型 描述
1 projectId String 群组id
3 taskId String 任务id

返回结果

id 字段名 类型 描述
1 code Number 结果代码:0 成功
2 error_message String 错误信息
3 deleteResult Boolean 是否删除成功
{
        "response":{
        "code":0,
        "map":{
            "deleteResult":"ture"
            "result":"success"
        }
    }
}