Is there a way for a defect to be updated with Pyral and show the author of the change to be another user other than the user id used to log into Rally?
Here's what I've tried, but it doesn't work:
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"
I've also tried author.DisplayName, author.EmailAddress, but it still logs the change to the defect from the user who's credentials are used to run the python script.