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 ?

sorin
  • 161,544
  • 178
  • 535
  • 806
Fruch
  • 408
  • 5
  • 18

1 Answers1

4

found an answer here: how to tag a defect using rally Javascript API

anyhow adding it to documentation might help:

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 }
Community
  • 1
  • 1
Fruch
  • 408
  • 5
  • 18