有没有一种方法可以用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"
我也试过了作者.显示名, 作者.电子邮件地址,但它仍然是日志 用户的凭据用于运行python脚本对缺陷的更改。在
author属性不能修改。Rally将始终将作者记录为使用哪个用户来运行脚本。你想干什么?在
相关问题 更多 >
编程相关推荐