我正在尝试使用pyralpython包创建Rally缺陷。需要添加标记“#TestTag2”。 有没有办法在创建缺陷时添加标签? 我试图在缺陷创建后添加标签。但是有以下错误-
info = {"Workspace": "/workspace/123",
"Project": "/project/123",
"Name": "Test Defect",
"Description": "Test Defect details",
"Owner": "/user/123",
"ScheduleState": "Defined",
}
try:
defect = rally.create('Defect', info )
print ("Rally Defect Opened - {0} \n").format(defect.FormattedID)
adds = rally.addCollectionItems(defect, 'Tag',"#TestTag")
rally.addCollectionItems(defect,)
print(adds)
except Exception, details:
sys.stderr.write('ERROR: %s \n' % details)
sys.exit(1)
正在获取以下错误-
^{pr2}$请帮助这里,如何添加一个标签到缺陷。提前谢谢。在
出现此错误是因为方法的签名如下:
您需要调整代码以传递标记列表:
^{pr2}$或者,您可以在缺陷创建期间直接使用,而无需任何其他API调用:
相关问题 更多 >
编程相关推荐