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

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

0 votes


Accepted answer

Permanent link
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

0 votes

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.

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
× 10,936
× 102
× 49

Question asked: Jun 29 '15, 1:25 a.m.

Question was seen: 3,113 times

Last updated: Jun 30 '15, 8:16 a.m.

Confirmation Cancel Confirm