如何使用 Pyral 为 Rally 缺陷创建讨论项?
这是我到目前为止所拥有的:
rally = Rally(server, user, password)
rally.enableLogging('rallyConnection.log')
rally.setProject("RallyTestPrj")
defectID = 'DE9221'
notes = "Adding new note from Python"
discussion = "Adding discussion from Python"
defect_data = { "FormattedID" : defectID,
"Notes" : notes,
"Discussion" : discussion
}
try:
defect = rally.update('Defect', defect_data)
except Exception, details:
sys.stderr.write('ERROR: %s \n' % details)
sys.exit(1)
print "Defect updated"