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

WorkItem Customization - workitem.getValue() returns a UUID

Hi,

I'm trying to write a calculated value script in javascript where I return the name of the Category attribute. But the following code returns: _O7KQEvZmEeC94ecF979KKA

How do I convert this into a human-readable string?

For reference, this is my code -

dojo.provide("from_default_valueProvider");

dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");

(function() {

var WorkItemAttributes= com.ibm.team.workitem.api.common.WorkItemAttributes;

dojo.declare("from_default_valueProvider", null, {

getValue: function(attribute, workItem, configuration) {

var teamValue = workItem.getValue(WorkItemAttributes.FILED_AGAINST);


return teamValue;
}
});
})();


Thanks in advance,

Henry

0 votes



2 answers

Permanent link
try getLabel

var teamValue = workItem.getLabel(WorkItemAttributes.FILED_AGAINST);

1 vote


Permanent link
Where do I get the reference material for:
com.ibm.team.workitem.api
Scenarios that I am trying to accomplish:
SEAT is a work item type with an enum attribute STATUS with values AVAILABLE / BOOKED. EMPLOYEE is another work item type.
EMPLOYEE Work Item has a list box named "SEAT ALLOCATION" that lists all SEAT Work Items with STATUS = AVAILABLE.
I am trying to write a calculated value js to list all work items of a particular type (say SEAT work item)

Is this possible with script based

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: Nov 24 '11, 6:19 a.m.

Question was seen: 5,572 times

Last updated: Nov 14 '12, 6:34 a.m.

Confirmation Cancel Confirm