Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



One answer

Permanent link

 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.

0 votes

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. 

Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 457
× 152

Question asked: Oct 10 '17, 3:01 a.m.

Question was seen: 1,940 times

Last updated: Oct 11 '17, 3:59 a.m.

Confirmation Cancel Confirm