阶段模板接口¶
-
class
teambition.api.stagetemplates.
StageTemplates
(client=None)[源代码]¶ -
create
(title, stages)[源代码]¶ 新建模板
详情请参考 http://docs.teambition.com/wiki/stages-template#stages-template-create
参数: - title – 模板标题
- stages – 阶段名称列表,至少两个阶段
返回: 返回的 JSON 数据包
-
delete
(id)[源代码]¶ 删除模板
详情请参考 http://docs.teambition.com/wiki/stages-template#stages-template-delete
参数: id – 路径参数 返回: 返回的 JSON 数据包
-
get
()[源代码]¶ 获取用户自定义的阶段模板
详情请参考 http://docs.teambition.com/wiki/stages-template#stages-template-get
返回: 返回的 JSON 数据包
-
update
(id, title=None, stages=None)[源代码]¶ 更新模板
详情请参考 http://docs.teambition.com/wiki/stages-template#stages-template-update
参数: - id – 路径参数
- title – 可选,模板标题
- stages – 可选,阶段名称列表,至少两个阶段
返回: 返回的 JSON 数据包
-