How to get the key value pair of wiki attribute in RTC
Manjunath Badiger (32●2●9)
| asked Dec 08 '17, 3:54 a.m.
edited Dec 08 '17, 5:13 a.m. by Ralph Schoon (63.3k●3●36●46) 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
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
Ralph Schoon (63.3k●3●36●46)
| 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.
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,.
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
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.