0

I wanted to use pyral to add tags to defects and I couldn't figure out how to do it

info = dict(test_id="ABC", platform="AAA")
tag1 = rally.create('Tag', dict(Name=info['test_id']))
tag2 = rally.create('Tag', dict(Name=info['platform']))

what's next ?

4

1 回答 1

4

在这里找到了答案: 如何使用 Javascript API 标记缺陷

无论如何将其添加到文档中可能会有所帮助:

tag1 = rally.create('Tag', dict(Name=info['test_id']))
tag2 = rally.create('Tag', dict(Name=info['platform']))

tags = [ dict(_ref=tag1.ref), dict(_ref=tag2.ref)]

defect = { "Tags" : tags }
于 2013-12-12T21:54:44.340 回答