Removing "dynamic" Mentions
![](http://jazz.net/_images/myphoto/66e177e2048ef539f521aa8ee20ae030.jpg)
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
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
2 answers
![](http://jazz.net/_images/myphoto/66e177e2048ef539f521aa8ee20ae030.jpg)
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
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
![](http://jazz.net/_images/myphoto/66e177e2048ef539f521aa8ee20ae030.jpg)
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
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