It's all about the answers!

Ask a question

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


Manjunath Badiger (3219) | asked Dec 08 '17, 3:54 a.m.
edited Dec 08 '17, 5:13 a.m. by Ralph Schoon (63.1k33646)

 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.



Accepted answer


permanent link
Lukas Steiger (3131626) | answered Dec 09 '17, 6:04 a.m.

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

One other answer



permanent link
Ralph Schoon (63.1k33646) | answered Dec 08 '17, 7:35 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Dec 08 '17, 8:00 a.m.

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:



Comments
Manjunath Badiger commented Dec 08 '17, 11:06 p.m.

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,.



Ralph Schoon commented Dec 09 '17, 7:23 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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 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.