我正在尝试使用 pyral python 包创建 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)
得到以下错误 -
Rally Defect Opened - DE1234
ERROR: addCollectionItems() takes exactly 3 arguments (4 given)
请在此处提供帮助,了解如何为缺陷添加标签。提前致谢。