Rally Python Api:缺陷Upd的集合作者

2024-04-26 12:58:49 发布

您现在位置:Python中文网/ 问答频道 /正文

有没有一种方法可以用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脚本对缺陷的更改。在


Tags: 方法用户iddatasys作者detailsauthor