有没有办法用 Pyral 更新缺陷并显示更改的作者是另一个用户,而不是用于登录 Rally 的用户 ID?
这是我尝试过的,但它不起作用:
rally = Rally(server, user, password)
rally.enableLogging('rallyConnection.log')
rally.setProject("RallyTestPrj")
defectID = 'DE9221'
notes = "Adding new note from Python"
author = rally.getUserInfo(username='rallyTest@test.com').pop(0)
defect_data = { "FormattedID" : defectID,
"Notes" : notes,
"Author" : author.Name
}
try:
defect = rally.update('Defect', defect_data)
except Exception, details:
sys.stderr.write('ERROR: %s \n' % details)
sys.exit(1)
print "Defect updated"
我也尝试过 author.DisplayName、author.EmailAddress,但它仍然会记录使用凭据运行 python 脚本的用户对缺陷的更改。