It's all about the answers!

Ask a question

Hyperlinks are no more displayed as links when entered in description(wiki type), "//" gets trimmed


Naveen Kumar N (112) | asked Jul 14 '16, 8:23 a.m.
edited Jul 14 '16, 10:31 a.m.
What we know:
In RTC wiki syntax, for urls/ hyperlinks, it needs to be enclosed inside {{ }} to display as unformatted text.
For example : http://www.google.com will be displayed as http:www.google.com if its not enclosed inside {{}}. If it is enclosed as {{http://www.google.com}}, then it is getting displayed as expected.

What we need:
We need regular expression or any other solution so that such texts can be parsed and enclosed inside {{ }} programmatically before saving it to RTC.

Thanks in Advance

2 answers



permanent link
Ralph Schoon (63.1k33645) | answered Jul 15 '16, 3:48 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Then you would have to create a follow up action/participant for work item save. Start here: https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/

Participant examples: https://rsjazz.wordpress.com/?s=participant
 

permanent link
Ralph Schoon (63.1k33645) | answered Jul 14 '16, 11:13 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The Wiki attribute type has this syntax : http://www.wikicreole.org/ and you have to basically use that syntax or use a HTML attribute type if you want to paste the link and get it converted.

Comments
Naveen Kumar N commented Jul 15 '16, 1:00 a.m.

Thanks for the answer Mr. Ralph Schoon.

We already have an application which uses wiki syntax(wiki type) for description field. As I mentioned we know that enclosing links inside {{ }} will consider the text as unformatted. But In a given description, we need to parse urls/hyperlinks alone so that we can enclose those parsed texts inside {{ }} via program to display links as expected.

Thanks in Advance

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.