It's all about the answers!

Ask a question

RTC 4.0 - Unable to retrieve value of attribute (type contributor)


DH Lee (25784446) | asked Oct 12 '12, 3:45 a.m.
JAZZ DEVELOPER
I am able to retrieve value of all custom attributes, except contributor attribute, rather it returns null value. Customer is current using javascript to retrieve contributor value

Below is example of javascript

var approver = workItem.getValue("attribute.approver");

text = "Approve: " + approver;

console.log(text);

------------------------

!ENTRY com.ibm.team.rtc.common.scriptengine 1 0

!MESSAGE LOG: Approve: null


I have referred to https://jazz.net/forum/questions/76762/how-to-fecth-the-values-of-contributor-list-type-attribute and https://jazz.net/forum/questions/13795/retrieving-icontributorhandle-using-contributor-attributes
however Icontributor class seem to be used for client plugin, which mean I may not be able to use for custom attributes.

Is there any way to retrieve value of contributor attribute via javascript? Any assistance will be most appreciated


Be the first one to answer this question!


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