It can't really be just any list. It should be a record, like so:
Code:
set newData to {bugID:12345, customer:"Joe Smith"}
set custom data of oTask to newData
That will give you two custom data keys called "bugID" and "customer" which are available to all tasks, not just this one.