Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Removing "dynamic" Mentions

I have programmatically created a work item from something stored in a different defect repository. I had taken all of the defect text and put it into the Description field.

RTC seems to automatically create "Mentions" Links for a couple things, including anything with a URL. It also seems to pick up work item #6 which is not at all related to this defect.

Two questions
1) how can I remove these once they get created? For example, I tried to select one and do "remove" but the "Remove" button is greyed.

2) Is there a way to tell my program that is using the RTC APIs (in java) to NOT allow this work item to have these auto-generated Mentions links?

Thanks,
Susan Hanson

0 votes



2 answers

Permanent link
Hi Susan,

currently, there is no way to disable link detectors from creating "mentions" links. This is discussed in work item 156307

The link detectors will trigger on expressions such as:
@user

http://sometext

As a work around you'd have to parse your imported work items text fields to e.g. change the URLs to contain an extra space between http: and //
Other than that I can only recommend you add comments to the above work item, explaining your need for it and push for configurability of link detectors to be implemented in a future release.

- Arne

0 votes


Permanent link
Hi Susan,

if you are creating work items programmatically using the Java API, try wrapping your comment or description text into <synthetic> tags. As far as I understand the server-side parsing code, this will suppress automatic creation of mentions links.

Example: XMLString.createFromPlainText("<synthetic>https://jazz.net</synthetic>");

Regards
Markus

0 votes

Comments

Also if you use text and not xmltext then it won't scan for linksĀ 


And u can remove the link and any extra comments

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jul 25 '11, 9:44 p.m.

Question was seen: 4,553 times

Last updated: Mar 14 '14, 10:38 a.m.

Confirmation Cancel Confirm