1. 授权认证
  2. 获取用户个人信息
  3. 项目协同
  4. 代码托管
  5. 持续集成
  6. 制品仓库
  7. 测试管理
  1. 项目协同
  2. 代码仓库
  3. DevOps 实践之旅
  4. 一分钟开始持续集成之旅
  5. 持续部署
  6. 制品库

查询筛选器列表

接口描述

中文:查询筛选器列表

英文:DescribeIssueFilterList

输入参数

参数名称 必选 类型 描述
Action String 公共参数,本接口取值:DescribeIssueFilterList
ProjectName String 项目名称
IssueType String 事项类型
ALL - 全部事项
DEFECT - 缺陷
REQUIREMENT - 需求
MISSION - 任务
EPIC - 史诗

输出参数

参数名称 类型 描述
Data IssueFilterListData 过滤器列表,包含系统过滤器和自定义过滤器。
RequestId String 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。

IssueFilterListData

参数名称 类型 描述
SystemFilterList Array of IssueFilter 系统过滤器列表
SystemFilterList Array of IssueFilter 自定义过滤器列表

IssueFilter

参数名称 类型 描述
Id Integer 过滤器 ID
IssueType String 事项类型
CreatorId Integer 创建人 ID
Name String 名称
IsSystem Boolean 是否是团队筛选器
SharedTeam Boolean 是否是系统自带
IsDefault Boolean 默认筛选器
Content String 筛选组合,JSON 字符串
例如:{“filterIssueType”:”ALL”,”sort”:{“key”:”PRIORITY”,”value”:”DESC”},”conditions”:[{"value":["TODO","PROCESSING"],"key":"STATUS_TYPE","fixed":true,"filterIssueType":"ALL","projectId":1},{"value":[],"key":"ASSIGNEE","fixed":true,"constValue":["UNSPECIFIC"],”filterIssueType”:”ALL”,”projectId”:1}
CreatedAt Long 创建时间
UpdatedAt Long 修改时间

示例

输入示例

{
    "Action": "DescribeIssueFilterList",
    "ProjectName": "demo-project",
    "IssueType": "REQUIREMENT"
}

输出示例

{
    "Response": {
        "RequestId": "146e1c15-b712-a7b6-851b-16267a079fad",
        "Data": {
            "SystemFilterList": [
                {
                    "Id": 1,
                    "IssueType": "REQUIREMENT",
                    "CreatorId": 1,
                    "Name": "我未完成的",
                    "IsSystem": true,
                    "SharedTeam": false,
                    "IsDefault": false,
                    "Content": "{\"FilterIssueType\":\"REQUIREMENT\",\"Sort\":{\"Key\":\"PRIORITY\",\"Value\":\"DESC\"},\"Conditions\":[{\"Key\":\"STATUS_TYPE\",\"Fixed\":true,\"ConstValue\":null,\"FilterIssueType\":\"REQUIREMENT\",\"ProjectId\":1,\"ProjectIds\":null,\"Value\":[\"TODO\",\"PROCESSING\"],\"TeamView\":false},{\"Key\":\"ASSIGNEE\",\"Fixed\":true,\"ConstValue\":null,\"FilterIssueType\":\"REQUIREMENT\",\"ProjectId\":1,\"ProjectIds\":null,\"Value\":[1],\"ValueChanged\":null,\"ValidInfo\":null,\"Status\":null,\"TeamView\":false}]}",
                    "CreatedAt": 1597908832000,
                    "UpdatedAt": 1597908832000
                },
                {
                    "Id": 2,
                    "IssueType": "REQUIREMENT",
                    "CreatorId": 1,
                    "Name": "分配给我的",
                    "IsSystem": true,
                    "SharedTeam": false,
                    "IsDefault": false,
                    "Content": "{\"FilterIssueType\":\"REQUIREMENT\",\"Sort\":{\"Key\":\"PRIORITY\",\"Value\":\"DESC\"},\"Conditions\":[{\"Key\":\"ASSIGNEE\",\"Fixed\":true,\"ConstValue\":null,\"FilterIssueType\":\"REQUIREMENT\",\"ProjectId\":1,\"ProjectIds\":null,\"Value\":[1],\"ValueChanged\":null,\"ValidInfo\":null,\"Status\":null,\"TeamView\":false}]}",
                    "CreatedAt": 1597908833000,
                    "UpdatedAt": 1597908833000
                },
                {
                    "Id": 3,
                    "IssueType": "REQUIREMENT",
                    "CreatorId": 1,
                    "Name": "我创建的",
                    "IsSystem": true,
                    "SharedTeam": false,
                    "IsDefault": false,
                    "Content": "{\"FilterIssueType\":\"REQUIREMENT\",\"Sort\":{\"Key\":\"PRIORITY\",\"Value\":\"DESC\"},\"Conditions\":[{\"Key\":\"CREATOR\",\"Fixed\":false,\"ConstValue\":null,\"FilterIssueType\":\"REQUIREMENT\",\"ProjectId\":1,\"ProjectIds\":null,\"Value\":[1],\"ValueChanged\":false,\"ValidInfo\":null,\"Status\":null,\"TeamView\":false}]}",
                    "CreatedAt": 1597908833000,
                    "UpdatedAt": 1597908833000
                },
                {
                    "Id": 4,
                    "IssueType": "REQUIREMENT",
                    "CreatorId": 1,
                    "Name": "我关注的",
                    "IsSystem": true,
                    "SharedTeam": false,
                    "IsDefault": false,
                    "Content": "{\"FilterIssueType\":\"REQUIREMENT\",\"Sort\":{\"Key\":\"PRIORITY\",\"Value\":\"DESC\"},\"Conditions\":[{\"Key\":\"WATCHER\",\"Fixed\":false,\"ConstValue\":null,\"FilterIssueType\":\"REQUIREMENT\",\"ProjectId\":1,\"ProjectIds\":null,\"Value\":[1],\"ValueChanged\":null,\"ValidInfo\":null,\"Status\":null,\"TeamView\":false}]}",
                    "CreatedAt": 1597908833000,
                    "UpdatedAt": 1597908833000
                },
                {
                    "Id": 5,
                    "IssueType": "REQUIREMENT",
                    "CreatorId": 1,
                    "Name": "全部打开的",
                    "IsSystem": true,
                    "SharedTeam": false,
                    "IsDefault": true,
                    "Content": "{\"FilterIssueType\":\"REQUIREMENT\",\"Sort\":{\"Key\":\"PRIORITY\",\"Value\":\"DESC\"},\"Conditions\":[{\"Key\":\"STATUS_TYPE\",\"Fixed\":true,\"ConstValue\":null,\"FilterIssueType\":\"REQUIREMENT\",\"ProjectId\":1,\"ProjectIds\":null,\"Value\":[\"TODO\",\"PROCESSING\"],\"TeamView\":false}]}",
                    "CreatedAt": 1597908833000,
                    "UpdatedAt": 1597908833000
                },
                {
                    "Id": 6,
                    "IssueType": "REQUIREMENT",
                    "CreatorId": 1,
                    "Name": "全部",
                    "IsSystem": true,
                    "SharedTeam": false,
                    "IsDefault": false,
                    "Content": "{\"FilterIssueType\":\"REQUIREMENT\",\"Sort\":{\"Key\":\"CREATED_AT\",\"Value\":\"DESC\"},\"Conditions\":[]}",
                    "CreatedAt": 1597908833000,
                    "UpdatedAt": 1597908833000
                }
            ],
            "CustomFilterList": []
        }
    }
}
上一篇查询事项附件的下载地址
最近更新
感谢反馈有用
感谢反馈没用