查看任务详细信息

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String GetTaskDetailBase

系统规定参数。取值:GetTaskDetailBase。

OrgId String 5ebbc0228123212b59xxxxx

企业标识,也称企业id,字符串形式,可在云效访问链接中获取,如

https://devops.aliyun.com/organization/【OrgId】

ProjectId String 60af1829a1dee1003fxxxxx

项目ID,可以在项目链接中获取,如

https://devops.aliyun.com/project/【ProjectId】/story/section/all

TaskId String 60b89a1d749ddb003fxxxxx

任务id https://devops.aliyun.com/project/ProjectId/tasks/view/all/task/TaskId

返回数据

名称 类型 示例值 描述
ErrorCode String “”

错误码

ErrorMsg String “”

错误信息

Object Struct

任务信息

Accomplished String ""

""

AncestorIds List ["5ebbc0228123212b59xxxxx"]

所有祖先任务,ancestorIds0 为父任务,ancestorIds1 为父任务的父任务,以此类推

Ancestors List []

AttachmentsCount Integer 0

0

Badges Struct

提示

AttachmentsCount Integer 0

0

CommentsCount Integer 0

0

LikesCount Integer 0

0

ObjectlinksCount Integer 0

0

CommentsCount Integer 0

评论数

Content String 测试任务

任务名称

Created String 2021-06-07T08:16:20.610Z

创建时间

Creator Struct

创建者

Id String 5ebbc0228123212b59xxxxx

创建者id

Name String 创建者名称

创建者名称

CreatorId String 5ebbc0228123212b59xxxxx

创建者id

Customfields Array of Customfield

自定义字段

CustomfieldId String 5ffbc74a0e5924ff4axxxxx

自定义字段id

Type String commongroup

自定义属性类型

commongroup: 缺陷分类

dropDown:单选选项

multipleChoice:多选选项

number:数字

date:日期

text:文本

cascading:层级

lookup:成员、版本

Value Array of ValueInfo

自定义字段值

Id String 5ffbc74a0e5924ff4axxxxx

自定义属性id

Title String 名称

自定义id

Values List []

自定义字段值

Divisions List []

DueDate String 2021-06-07T08:16:20.610Z

截止时间

Executor Struct

执行者

AvatarUrl String http://ww.aliyun.com

执行者头像

Id String 5ebbc0228123212b59xxxxx

执行者id

Name String 执行者名称

执行者名称

ExecutorId String 5ebbc0228123212b59xxxxx

执行者Id

Id String 5ebbc0228123212b59xxxxx

任务Id

InvolveMembers List ["5ebbc0228123212b59xxxxx"]

任务参与者id

Involvers Array of Involver

任务参与者

Id String 5ebbc0228123212b59xxxxx

参与者Id

Name String 参与者

参与者名称

IsArchived Boolean false

是否归档

IsDone Boolean false

是否完成

IsFavorite Boolean false

是否最喜爱的

IsTopInProject Boolean false

是否顶级

Labels List []

标签

LikesCount Integer 0

喜爱数

Note String 备注

任务备注

ObjectType String task

类型

ObjectlinksCount Integer 0

关联任务数

Organization String {}

企业

OrganizationId String 5ffbc74a0e5924ff4axxxxx

企业id

Parent String 5ffbc74a0e5924ff4axxxxx

父任务id

Priority Integer 1

优先级

Progress Integer 0

0

ProjectId String 5ffbc74a0e5924ff4axxxxx

项目id

Rating Integer 0

0

Recurrence String ""

""

Reminder Struct

提醒

CreatorId String 5ffbc74a0e5924ff4axxxxx

创建人

Date String “”

时间

MemberRoles List []

角色

Members List []

成员

Method String ""

方法

Rules List []

规则

Type String “”

类型

Scenariofieldconfig Struct

config

Icon String ss

图标

Id String 5ffbc74a0e5924ff4axxxxx

config id

Name String task

name

ProTemplateConfigType String ""

""

ScenariofieldconfigId String 5ffbc74a0e5924ff4axxxxx

用于标识是task story bug 等

ShareStatus Integer 1

1

Source String ""

""

SourceDate String ""

""

SourceId String ""

""

Sprint String {}

迭代

SprintId String 5ffbc74a4295d500449xcxxxx

迭代id

Stage Struct

阶段

Id String 5ffbc74a4295d500449xcxxxx

阶段id

Name String 默认列表

阶段名称

StageId String 5ffbc74a4295d500449xcxxxx

阶段id

StartDate String 2021-06-07T08:16:20.610Z

开始时间

StoryPoint String 0

故事点

SubtaskCount Struct

子任务计数

Done Integer 2

已完成数

Total Integer 2

总数

Subtasks Array of Subtask

子任务

Content String 子任务名称

子任务名称

Id String 5ebbc0228123212b59xxxxx

子任务Id

TagIds List ["5ebbc0228123212b59xxxxx"]

标签Id列表

TaskId String 5ebbc0228123212b59xxxxx

任务id

Taskflowstatus Struct

任务状态

Id String 5ebbc0228123212b59xxxxx

任务状态id

Kind String start

类型

Name String 已完成

任务状态名称

TaskflowId String 5ebbc0228123212b59xxxxx

任务流程id

TaskflowstatusId String 5ebbc0228123212b59xxxxx

任务状态id

Tasklist Struct

分组

Id String 5ebbc0228123212b59xxxxx

分组Id

Title String 默认分组

分组名称

UniqueId Integer 16

任务数字id,在项目中唯一自增

UntilDate String 2021-06-07T08:16:20.610Z

时间

Updated String 2021-06-07T08:16:20.610Z

更新时间

Visible String member

参与者可见

WorkTime Struct

工作时间

TotalTime Integer 0

总时间

Unit String minute

单位

UsedTime Integer 0

已用时

RequestId String ASSDS-ASSASX-XSAXSA-XSAXSAXS

请求id,每次请求都是唯一值,便于后续排查问题

Successful Boolean true

true 接口调用成功,false 接口调用失败

示例

请求示例

http(s)://[Endpoint]/?Action=GetTaskDetailBase
&OrgId=5ebbc0228123212b59xxxxx
&ProjectId=60af1829a1dee1003fxxxxx
&TaskId=60b89a1d749ddb003fxxxxx
&<公共请求参数>

正常返回示例

JSON格式

{"RequestId":"ASSDS-ASSASX-XSAXSA-XSAXSAXS","ErrorMsg":"“”","Object":{"UntilDate":"2021-06-07T08:16:20.610Z","Recurrence":"\"\"","SourceDate":"\"\"","Organization":"{}","TaskId":"5ebbc0228123212b59xxxxx","Accomplished":"\"\"","Parent":"5ffbc74a0e5924ff4axxxxx","StageId":"5ffbc74a4295d500449xcxxxx","SourceId":"\"\"","Rating":"0","SprintId":"5ffbc74a4295d500449xcxxxx","OrganizationId":"5ffbc74a0e5924ff4axxxxx","Source":"\"\"","Created":"2021-06-07T08:16:20.610Z","StartDate":"2021-06-07T08:16:20.610Z","ObjectType":"task","ExecutorId":"5ebbc0228123212b59xxxxx","Visible":"member","DueDate":"2021-06-07T08:16:20.610Z","LikesCount":"0","UniqueId":"16","Progress":"0","Updated":"2021-06-07T08:16:20.610Z","Priority":"1","CreatorId":"5ebbc0228123212b59xxxxx","ProjectId":"5ffbc74a0e5924ff4axxxxx","ShareStatus":"1","TaskflowstatusId":"5ebbc0228123212b59xxxxx","IsDone":"false","StoryPoint":"0","IsFavorite":"false","AttachmentsCount":"0","IsArchived":"false","IsTopInProject":"false","Content":"测试任务","CommentsCount":"0","Note":"备注","ScenariofieldconfigId":"5ffbc74a0e5924ff4axxxxx","Id":"5ebbc0228123212b59xxxxx","Sprint":"{}","ObjectlinksCount":"0","Subtasks":[{"Content":"子任务名称","Id":"5ebbc0228123212b59xxxxx"}],"Customfields":[{"CustomfieldId":"5ffbc74a0e5924ff4axxxxx","Type":"commongroup","Value":[{"Title":"名称","Id":"5ffbc74a0e5924ff4axxxxx"}],"Values":"[]"}],"Involvers":[{"Id":"5ebbc0228123212b59xxxxx","Name":"参与者"}],"Divisions":"[]","Ancestors":"[]","Labels":"[]","TagIds":"[\"5ebbc0228123212b59xxxxx\"]","AncestorIds":"[\"5ebbc0228123212b59xxxxx\"]","InvolveMembers":"[\"5ebbc0228123212b59xxxxx\"]","Scenariofieldconfig":{"Id":"5ffbc74a0e5924ff4axxxxx","Icon":"ss","ProTemplateConfigType":"\"\"","Name":"task"},"Executor":{"AvatarUrl":"http://ww.aliyun.com","Id":"5ebbc0228123212b59xxxxx","Name":"执行者名称"},"Tasklist":{"Title":"默认分组","Id":"5ebbc0228123212b59xxxxx"},"Taskflowstatus":{"TaskflowId":"5ebbc0228123212b59xxxxx","Kind":"start","Id":"5ebbc0228123212b59xxxxx","Name":"已完成"},"Creator":{"Id":"5ebbc0228123212b59xxxxx","Name":"创建者名称"},"Reminder":{"Type":"“”","CreatorId":"5ffbc74a0e5924ff4axxxxx","Method":"\"\"","Date":"“”","MemberRoles":"[]","Members":"[]","Rules":"[]"},"SubtaskCount":{"Done":"2","Total":"2"},"WorkTime":{"TotalTime":"0","UsedTime":"0","Unit":"minute"},"Badges":{"LikesCount":"0","CommentsCount":"0","ObjectlinksCount":"0","AttachmentsCount":"0"},"Stage":{"Id":"5ffbc74a4295d500449xcxxxx","Name":"默认列表"}},"ErrorCode":"“”","Successful":"true"}

错误码

HttpCode 错误码 错误信息 描述
404 InvalidOrganization.NotFound The specified organization doe not exist. 企业信息有误,未找到该企业
404 InvalidUser.NotFound The specified user does not exist. 用户数据有误,未找到该用户
400 InvalidUser.UserNotInCurrentOrganization The user does not belong to the specified organization. 当前用户不属于该企业

访问错误中心查看更多错误码。