RTC Script based Condition
Hi Dears,
|
One answer
Selected items in enumeration lists are returned as an array of Objects, so this will do it for you:
var someEnumerationList = workItem.getValue('my Attribute Id');
someEnumerationList.forEach(function(item) {
console.log(item.label); //label property is the text of the selected item
});
|
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.
Comments
I have tried several times to use JavaScript with list type attributes and have never been successful. I think the JavaScript API does not officially support the list attributes. The available documentation does not list the list types and I think I have always been unable to configure value provider or value sets for them. There might be internal API I do not know.