How to make a plugin applicable only to a particular workitem
Hi all,
I have created an plugin which checks if workitem has a parent WorkItem link or not. If parent workitem is not Linked, you can't save child workitem. Now I want this plugin to applicable for a particular workitem not all the workitem in the project. Regards, Mohan |
Accepted answer
Ralph Schoon (63.3k●3●36●46)
| answered Jun 29 '15, 2:39 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
In an advisor, the advisor has to check, weather it needs to run or not. Your advisor would look at information for example the type of the work item to determine if it needs to run. You can make the extension configurable. See Rational Team Concert Extensions Workshop how this is done.
mohan kumar selected this answer as the correct answer
Comments
mohan kumar
commented Jun 29 '15, 3:14 a.m.
Hi Ralph,
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.
sam detweiler
commented Jun 29 '15, 7:25 a.m.
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.
|
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.