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

How to get the key value pair of wiki attribute in RTC

 I have added a custom attribute type wiki in RTC Test Task. And added the custom attribute in the editor presentation and set key as google  and value as https://www.google.com/. I called the key in the wiki field, as url link its not redirecting to the value set assigned against the key google. And also i want to pass some variable with the hyperlink.



0 votes


Accepted answer

Permanent link

You can define any custom attribute you want and assign any key/value pair to it in the eclipse client. But the wiki presentation provided by RTC out of the box can only handle the keys that Ralph has mentioned in his answer. So if you want to define your own key/value pairs and use them in an editor presentation, you have to write your own attribute based editor presentation.  https://github.com/jazz-community/rtc-statushistory-presentation serves as an example on how to write your own attribute presentation. 


If I understand your question correctly, you want to populate some content to the wiki field you have added. So instead of using key/value pairs which are only there to configure the editor presentation, you should look into calculated values, a good example can be found here: https://www.ibm.com/developerworks/rational/library/rational-team-concert-calculated-fields-work-item/


Manjunath Badiger selected this answer as the correct answer

0 votes


One other answer

Permanent link

If I paint "Rocket" on my car it is still unlikely that I can drive it to the moon, or even to Proxima Centaury.

https://jazz.net/library/article/130#properties explains the key and value pairs. There are predefined keys such as readonly, labelVisible, hideIfEmpty that control specific behavior of the editor presentation.

You can not just think up some key and value pair and expect it to work somehow.

Here the keys available in the Web Admin UI:


0 votes

Comments

Thank you for the information Ralph.


But these predefined option were not available on the RTC Eclipse Client. So I added a new key and value pair against the custom attribute.

But still, I didn't got the answer for the question how to pass parameters to the hyperlink.
Same question was asked by another user, and some other answered back as use wiki attribute, but he did not mentioned how,.


The answer is that this is the real world and you can not just dream up stuff. As Lukas answered there are ways to customize the tool to some extend. You should be very carefull in deciding if you really want to spend the effort, time and money to do that kind of extension and maintain it for the years to come.

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
× 10,938

Question asked: Dec 08 '17, 3:54 a.m.

Question was seen: 1,964 times

Last updated: Dec 09 '17, 7:23 a.m.

Confirmation Cancel Confirm