Why can I only assign "Unassigned" to "Owned By" field as a Script Based Calculated Value?
 
			
    Hi
    my "Owned By" field is to be fed from a Script Based Calculated Value.
    
    When returning a string with the UUID from "Unassigned" ("_YNh4MOlsEdq4xpiOKg5hvA"), it works perfectly well, the owner of the item changes to unassigned. If I return a string with  the UUID from any other users, the item owner does not change.
    
    I am researching my UUID with another script using workItem.getValue(WorkItemAttributes.OWNER); so I am pretty confident the UUID as such is correct.
    Anyone with a clue why this isn't working?
    Regards
    
    Franca
    
				One answer
 
								Franca,
    this works for me. I used the script below and it worked immediately. I got the ID from the user profile.
/*********** * Licensed Materials - Property of IBM * (c) Copyright IBM Corporation 2011. All Rights Reserved. * * Note to U.S. Government Users Restricted Rights:
* Use, duplication or disclosure restricted by GSA ADP Schedule * Contract with IBM Corp. ***********/ dojo.provide("com.example.ValueProvider");(function() { dojo.declare("com.example.ValueProvider", null, {
getValue: function(attribute, workItem, configuration) { //return workItem.getValue(attribute); return "_cc14oFplEeuac-qhIXDu1Q"; } });})();