How to make a plugin applicable only to a particular workitem
Accepted answer
Comments
Hi Ralph,
Thanks for reply I have already deployed that plugin successfully and added the plugin to Preconditions( Team Configuration -> Operation Behavior, look for Work Items -> Save Work Item (server) and click Add to add our Advisor) but plugin is applicable to all workitem but i need this plugin to work for only one particular workitem .
Again, your plugin has to look at the data that triggers it and decide if it needs to run as explained in the Rational Team Concert Extensions Workshop Lab 3,4. The extension there looks at the work item type and only works for the type it is configured for. It also looks at the work item state and only works if the state it the one it is configured to react on.
As Ralph said., YOU have to write code in your plugin, and exit quietly if the type of the workitem that triggered the plugin is not the one you care about.