# 说明

计算符合查询条件的任务变更历史数量并返回

# SDK 方法名

nodeJs:

SDK使用方式 (opens new window)

插件中使用SDK

方法名::

getTaskChangesCount
1

# url

https://api.tapd.cn/task_changes/count

# 支持格式

JSON/XML(默认JSON格式)

# HTTP请求方式

GET

# 请求数限制

只返回任务变更历史数量

# 请求参数

字段名 必选 类型及范围 说明 特殊规则
id integer id 支持多ID查询
workspace_id integer 项目ID
task_id integer 任务ID
creator string 创建人(操作人)
created datetime 创建时间(变更时间) 支持时间查询
change_summary string 需求变更描述
comment string 评论
changes string 变更详细记录
entity_type string 变更的对象类型

# 调用示例及返回结果

# 获取项目下任务变更次数

# curl 使用 Basic Auth 鉴权调用示例

curl -u 'api_user:api_password' 'https://api.tapd.cn/task_changes/count?workspace_id=10158231'

# 返回结果

{
    "status": 1,
    "data": {
        "count": 42
    },
    "info": "success"
}
1
2
3
4
5
6
7

获取任务ID为 1010158231500600411 的任务变更次数

# curl 使用 Basic Auth 鉴权调用示例

curl -u 'api_user:api_password' 'https://api.tapd.cn/task_changes/count?workspace_id=10158231&task_id=1010158231500600411'

# 返回结果

{
    "status": 1,
    "data": {
        "count": 2
    },
    "info": "success"
}
1
2
3
4
5
6
7
上次更新: 2024-05-16 14:58:20