It's all about the answers!

Ask a question

JS script to assign a user to owner field


T M (8876188143) | asked Sep 27 '12, 9:34 a.m.
edited Sep 27 '12, 10:04 a.m. by Ralph Schoon (63.1k33646)
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?

Comments
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.1k33646) | answered Feb 03 '13, 11:39 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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. http://jazz.net/forums/viewtopic.php?t=15096 lab 5 provides more information.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.