It's all about the answers!

Ask a question

Convert text pattern to hyperlink in a work item comment


Vivek Iyer (15212527) | asked Mar 27 '12, 11:10 a.m.
All,

RTC automatically converts a pattern like "work item 1234" to a link when a comment is saved.

I would like to be able to do something similar - to detect a string pattern, and convert that into a hyperlink. E.g., a pattern for "Support ticket 1234" should be converted into
<href>Support ticket 1234</a>.


I looked through the extension workshop document, and it looks like the best way to go about this is to write a save operation participant.

There are a couple of unknowns I would like to ask the community about.

1) will doing such a conversion automatically cause this link to be included in the Quick Information -> Mentions section? if not, what needs to be done to get that listed there?

2) the Eclipse client does something similar but in real-time. What needs to happen on the Eclipse end for similar real-time pattern matching behavior. (just curious to see if it will be worth the effort.)

Thanks,

Vivek

One answer



permanent link
Vivek Iyer (15212527) | answered Mar 27 '12, 11:15 a.m.
Just saw this for the Eclipse client:

https://jazz.net/wiki/bin/view/Main/LinkDetection

Your answer


Register or to post your answer.