Copy contributer attrubute value into string type attribute using javascript in RTC
![]() My scenario is that ,I have created custom contribute type attribute ,I want to copy contribute attribute value(ex XYZ) into string type attribute using javascript
|
One answer
![]()
Ralph Schoon (62.7k●3●36●43)
| answered Oct 10 '17, 5:01 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Oct 10 '17, 5:08 a.m. Please see https://jazz.net/library/article/1093 for an overview how Attribute Customization works. You likely want to use a calculated value.
Comments Hi Ralph, I have created three custom owned by attribute
By default owned by attribute value copied into string type attribute,but for custom contribute type value didn't copy(owner name)into another string attribute,it get only UUID but I want to copy label
Use workItem.getLabel() ( see https://jazz.net/wiki/bin/view/Main/AttributeCustomization#API_for_Javascript )
Note: complex items such as IContributor are not really supported as mentioned in that wiki, so there is a lot of information you will not be able to get at. Also note that List type attributes are not really supported in JavaScript either.
|