Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

JS script to assign a user to owner field

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?

0 votes

Comments

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
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.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,121
× 42

Question asked: Sep 27 '12, 9:34 a.m.

Question was seen: 4,703 times

Last updated: Feb 03 '13, 11:39 a.m.

Confirmation Cancel Confirm