Project

General

Profile

REST API Custom Field for Python

Added by Craig Haskins over 13 years ago

Hi,

Does anyone know the correct syntax for writing to an issues's custom fields from Python with pyactiveresource?

I tried translating the Ruby example to

issue = Issue.create({'project_id' : 1,
'subject' : 'Test from Python',
'tracker_id' : 4,
'custom_field_values' : {'6' : '42'}})

But I get an Exception in the XML conversion. I tried a few other formats but nothing seemed to work

Thanks

Craig