How to calculate 'Owned By' attribute value based on another attribute value?
Hi
I would like to calculate the 'Owned By' attribute value based on another attribute's value on the same workitem. I tried by adding a dojo script to the 'Calculated Values', but I am not sure how to return a user (contributor) from the dojo code. Is it possible to return a contributor from the script? If yes, then how to do so?
Can anyone help plz, Thanks in advance.
Regards,
Vijay
One answer
it is possible to return a contributor from the script, you need to return the specific id associated with the contributor.
below is a sample on setting the contributor to unassigned, which might give you an idea on how to go about it:
how-to-set-contributor-type-field-to-unassigned-in-attribute-customization-script
if the attribute whose value needs to be used for Owned By is of the Contributor type, your task is simplified. you just need to do a getValue on the source attribute and use it to be returned from your script.
below is a sample on setting the contributor to unassigned, which might give you an idea on how to go about it:
how-to-set-contributor-type-field-to-unassigned-in-attribute-customization-script
if the attribute whose value needs to be used for Owned By is of the Contributor type, your task is simplified. you just need to do a getValue on the source attribute and use it to be returned from your script.
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jan 10 '13, 7:37 a.m.Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jan 10 '13, 7:39 a.m.