It's all about the answers!

Ask a question

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


Rohini Kumar (92956) | 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 (63.3k33646) | 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.


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.