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

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

0 votes



One answer

Permanent link

 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";

    }
});

})();

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
× 10,938

Question asked: May 06 '21, 10:51 a.m.

Question was seen: 1,298 times

Last updated: May 07 '21, 2:28 a.m.

Confirmation Cancel Confirm