It's all about the answers!

Ask a question

Cannot make the link detection in text editors work


Jean-Yves Rigolet (462) | asked Feb 28 '07, 7:00 a.m.
JAZZ DEVELOPER
I am trying to define a link to a jazz workitem in a editor without
success.

I've followed what's defined in the RC2 new & noteworthy page
(https://jazz.net/downloads/DownloadDocument.jsp?href=milestones/data/0.5RC2/jazz-news-0.5RC2.html
).
Has any of you managed to do this? I'd be pleased to know how.

Cheers
Jean-Yves

5 answers



permanent link
Martha (Ruby) Andrews (3.0k44051) | answered Mar 05 '07, 9:38 p.m.
JAZZ DEVELOPER
I have had success linking from a .java file to a work item.

In my Java source, I have a comment like this:

//TODO: bug 1234 Fix the bug or remove this comment.

In the Jazz repository, there is a work item 1234.

On Windows, if I hold down the control key and hover over "bug 1234", it
becomes a link. Clicking the link opens the work item in an editor.

Martha
rigolet.j@fr.ibm.com wrote:

I am trying to define a link to a jazz workitem in a editor without
success.

I've followed what's defined in the RC2 new & noteworthy page
(https://jazz.net/downloads/DownloadDocument.jsp?href=milestones/data/0.5RC2/jazz-news-0.5RC2.html
).
Has any of you managed to do this? I'd be pleased to know how.

Cheers
Jean-Yves

permanent link
Philippe Krief (561155) | answered Mar 08 '07, 7:00 a.m.
JAZZ DEVELOPER
To complete Martha answer:

This feature works with a set of keywords...
This set of keywords is defined in the Process Specification of your
current project Area. Jazz considers as keywords:
- the name of the com.ibm.team.workitem.configuration.workItemTypes
you have defined
- the <alias> tags attached on each <type> declaration.

For example, if you create a Project Area based on the default Eclipse
Way process template, you get the following keywords which will behave
as Martha described: Defect, Task, Enhancement, Review, Verification, RFS.

Feel free to extend this list by adding <alias> tags e.g.:
<type
id="defect"
category="com.ibm.team.workitem.workItemType"
name="Defect"

icon="platform:/plugin/com.ibm.team.workitem.common/icons/obj16/wi_bug.gif"

dimmedicon="platform:/plugin/com.ibm.team.workitem.common/icons/obj16/wi_bug_dim.gif">
<alias name = "bug" />
</type>

permanent link
Carol Ulbricht (5632) | answered Aug 09 '07, 1:59 p.m.
JAZZ DEVELOPER
On jazz.net, I tried to create links to other defects in the description of defect 28871.
https://jazz.net/jazz/web/projects/Jazz%20Project#perspective=Work%20Items&action=viewWorkItem&id=28871

The description contains these phrases (successive versions):
(cf. work item 28441) and See work item 28818 for details.
(cf. Defect 28441) and See Defect 28818 for details.
(cf. defect 28441) and See defect 28818 for details.

I used "work item" based on "Getting Started with Work Items"
https://jazz.net/learn/LearnItem.jsp?href=content/docs/work-items/index.html
Changed to "Defect" based on this thread, and changed to "defect" because I see it working for others.

Why aren't they rendered as links? What else do I have to do? Does this just not work from the Web UI editor?

Thanks, Carol

permanent link
Christophe Elek (2.9k12921) | answered Aug 09 '07, 3:21 p.m.
JAZZ DEVELOPER
cjulbric@us.ibm-dot-com.no-spam.invalid (cjulbric) wrote in news:f9fl5d$s04
$1@localhost.localdomain:

Why aren't they rendered as links? What else do I have to do? Does
this just not work from the Web UI editor?

I noticed the same thing, seems to work from the eclipse UI, not the web.
Sounds like a good feature request though :)

--
Christophe Elek
Serviceability Architect
IBM Software Group - Rational

permanent link
Carol Ulbricht (5632) | answered Aug 15 '07, 6:00 p.m.
JAZZ DEVELOPER
Christophe wrote:
Sounds like a good feature request though


I found and Subscribed to
Enhancement 22569 "Web UI's work item editor does not always turn "<phrase> <n>" into a link to another work item."

Your answer


Register or to post your answer.