# 说明

计算符合查询条件的需求分类数量并返回

# SDK 方法名

nodeJs:

SDK使用方式 (opens new window)

插件中使用SDK

方法名::

getStoryCategoriesCount
1

# url

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

# 支持格式

JSON/XML(默认JSON格式)

# HTTP请求方式

GET

# 请求数限制

只返回需求分类数量

# 请求参数

字段名 必选 类型及范围 说明 特殊规则
id integer id 支持多ID查询
workspace_id integer 项目ID
name string 需求分类名称 支持模糊匹配
description string 需求分类描述
parent_id integer 父分类ID
created datetime 创建时间 支持时间查询
modified datetime 最后修改时间 支持时间查询

# 调用示例及返回结果

# 获取项目下需求分类数量

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

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

# 返回结果

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