It's all about the answers!

Ask a question

JS script to assign a user to owner field

T M (8876187143) | asked Sep 27 '12, 9:34 a.m.
edited Sep 27 '12, 10:04 a.m. by Ralph Schoon (63.0k33645)
Does anyone has a JS script to set the owner of a WI upon submission to a specific user depending on the filed-against category?

Terry Kemp commented Feb 02 '13, 8:11 p.m.

Hi, are you still trying to figure out how to do this?  I got it working, but would need to sanitize my script to turn it into an example.

One answer

permanent link
Ralph Schoon (63.0k33645) | answered Feb 03 '13, 11:39 a.m.
TM. You can use workitem.setValue to set a contributor type attribute. You have to pass a valid UUID. You can not pass a user id or name. You can get UUIDs e.g. Using a getValue for example. There have been several examples in the forum recently. lab 5 provides more information.

Your answer

Register or to post your answer.