It's all about the answers!

Ask a question

Copy contributer attrubute value into string type attribute using javascript in RTC


Rohini Kumar (92547) | asked Oct 10 '17, 3:01 a.m.
edited Oct 10 '17, 3:04 a.m.

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



permanent link
Ralph Schoon (62.7k33643) | 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. 
https://jazz.net/library/article/1003 might be interesting as well.


Comments
Rohini Kumar commented Oct 11 '17, 3:24 a.m. | edited Oct 11 '17, 3:30 a.m.

 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


Ralph Schoon commented Oct 11 '17, 3:59 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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. 

Your answer


Register or to post your answer.