Restrict linking to work items not in your Project Area
Hi
RTC v4.0.2
Is it possible to restrict the ability to create a link to a work item that is not in your own Project Area.
For Example
Working in Project Area A creating a new Work Item. In the text the wording includes "task 1" but this then creates a hotspot mention to a to Work Item 1 which is actually in Project Area B which is an unrelated PA and for security reasons may not want others accessing their work items
Is there a behaviour setting that can be activated for this or some other setting to prevent this.
RTC v4.0.2
Is it possible to restrict the ability to create a link to a work item that is not in your own Project Area.
For Example
Working in Project Area A creating a new Work Item. In the text the wording includes "task 1" but this then creates a hotspot mention to a to Work Item 1 which is actually in Project Area B which is an unrelated PA and for security reasons may not want others accessing their work items
Is there a behaviour setting that can be activated for this or some other setting to prevent this.
One answer
David, as far as I can tell, the only way to do this would be to create an advisor, this is a server extension that would run on save of a work item and would look at the data of the work item and prevent the save from happening if there is a violation. Examples for this kind of extension are the Required Properties advisor/precondition. Start here if you wna to know how to do something like this: https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/
Most of the code on that blog is for participants that run after the save, however, as described here: https://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/ there are only small differences between them, mainly the extension point, and the abstract class to extend, so you can grab most of the code from the examples.
Most of the code on that blog is for participants that run after the save, however, as described here: https://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/ there are only small differences between them, mainly the extension point, and the abstract class to extend, so you can grab most of the code from the examples.