如何使用第一版python sdk向任务添加标签?

问题描述

我正在编写一个脚本,以便在 GitHub 中创建缺陷的情况下自动为故事创建任务。

我不确定如何为创建的任务添加标签。我想在第一版中创建的任务中添加缺陷标签

from v1pysdk import V1Meta

with V1Meta(address=ADDRESS,instance=INSTANCE,password=ACCESS_TOKEN,use_password_as_token=True,) as v1:
    story = v1.Story.where(Number='B-138299').first()
    new_task = v1.Task.create(
        Name='Created from Script to test',Parent=story,TaggedWith='defect',Description="This is created from the script")

返回 500。谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)