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

I want to capture save operation event of plan module using rtc sdk 4.0 to develop RTC Server side plugin

 We want to catch plan save operation , to get plan start date , end date and to populate it in some custom fields
using RTC SDK 4.0

Requesting ppl to please help , as its an urgent requirement

Thanks in advance

0 votes

Comments

I'm not sure I follow.  A plan's start date and end date is always going to follow the iteration for which that plan is associated.  That will never change. 


Accepted answer

Permanent link
do you mean that your plugin does not get triggered on the Save Plan Server operation?

these two operations from the table Ralph mentioned (first two in the table)

Save Plan Planning RTC server com.ibm.team.apt.server.saveIterationPlan The Save Plan operation is executed whenever a plan is saved in the repository.
Save Plan Snapshot Planning RTC server com.ibm.team.apt.server.saveSnapshot The Save Plan Snapshot operation is executed whenever a Plan Snapshot is saved in the repository.

Ralph Schoon selected this answer as the correct answer

0 votes


4 other answers

Permanent link
I am also not sure what you intend to do. The Plan API is pretty much internal API. I am also not sure where you want to put the data. Your question is not very detailed.

Not sure when exactly the operation Plan Save (server) is called. Here is where you have to start anyway:

https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/

The operation definitions you need: https://jazz.net/wiki/bin/view/Main/CustomPreconditionsTable#operations

More links here: https://rsjazz.wordpress.com/interesting-links/

The blog has examples for advisors and participants for other extension points, however the approach should be very similar.

0 votes

Comments

Please check my comment below 


Permanent link
  Hi Ralph,
Thanks for your reply. 
The  project is base of formal process template and we are using RTC 4.0.1.
We are trying to capture planned start and end dates of work item that are modified after we take planned snapshot in RTC plan. 
These dates are not stored in database but we have reporting requirements bases on these dates. 
We can access these dates using REST API but now with plugin development we want to put these dates in two custom time-stamp attributes then will produce reports using BIRT.
But main problem is we cannot detect save operation on plan after we take snapshot. The save operation of plan is only detected when work item in plan is modified. 
Can you please help us with method, class in java api we should look for this save operation of plan. 

Thanks in advance.
Regards,
Jonan

0 votes

Comments

 HI Sam,

Thanks for your reply
We are actually new to RTC plugin development.
We had previously created a plugin which works on workitem save operation
by implementing IOperationParticipant on followup action 
using extension point : com.ibm.team.process.service.operationParticipants

However we dont know which interface we should implement to trigger plan save operation /snapshot save operation 
and how to attach right extension point for this .

Thanks and Regards,
Jonan Kamble




the architecture of the plugin is the same..

you are still implementing the operationSave participant..
but in the plugin.xml, the operation you respond to is different.(and of course the data too)  you should really take the self paced downloadable workshops


1 vote

As Sam states, you basically need to trigger on a different save operation - for the plan and not the work item. These dates are stored in the plan snapshot and not in the work items. Please be aware that there is no public API for plans and you have to use internal API that can be subject to change.


Permanent link
Hi All, 

We are now able to catch plan save operation
Really appreciate your help and guidance

Thanks a lot!!!

Jonan Kamble  
 

0 votes


Permanent link
 Hi Jonan,

Can you please tell me how you are getting the plan info after you intercept "Save Plan" operation? We were able to intercept the "Save Plan" but we could get any info about the plan,

Thanks

0 votes

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
× 1,220

Question asked: Aug 14 '14, 6:42 a.m.

Question was seen: 4,861 times

Last updated: Oct 23 '15, 8:27 p.m.

Confirmation Cancel Confirm