Followup action
![]()
Hi,
I'm trying to extend the Save action of a workitem and include a custom action after the work item was saved (so, in the followup event). So the plugin will be deployed on the server side. What I need is the human readable values (you can see in the viewer, like in web, or in RTC directly). Some values are easily retrievable, but some are objects and I could not find out how to get the human readable value out of them. Those are marked with "// object" at the end of the line Here after is the code
Can you please help me? Kind regards, Dacian |
7 answers
![]()
Hello Dacian,
Let me hijack your post a bit. I also am working on an IWorkItemPostSaveParticipant extension. My trouble is that it never seems to get invoked... I can attach to tomcat and debug other actions and extensions within RTC. I can also see that my extension plugin has be loaded by OSGi. What mojo did you use to enable IWorkItemPostSaveParticipant extensions? Thanks, |
![]()
Upon plugin load, I'm bumping into is a null pointer exception. I'm pretty sure that there is a problem with my plugin.xml or site.xml:
|
![]()
I don't know any details about your setup. I'm quite a beginner in this.
I have set up my project just by using an analogy and following one of the videos I could find here: https://jazz.net/wiki/bin/view/Main/RTCSDK20_ProcessPreConditionExample#Videos So, I have never modified the plugin.xml or site.xml HTH |
![]()
For your question about the UserID, check this post:
http://jazz.net/forums/viewtopic.php?t=2272&highlight=getowner For your question about the workItem ID, use the getId() method, not the getItemId() method. |
![]()
Thank you for the answer.
1) As soon as I added as required plugin com.ibm.team.repository.client (needed for the code you gave me) my plugin does not go into Active state any more, no matter how much I wait. It stays in Installed state. Do you know why? Or what can I do to overcome this? 2) getItemId() is giving the object, while getId() gives the actual ID (the number) |
![]() 1) As soon as I added as required plugin Follow-up actions run on the server, and you cannot use client-side plug-ins there. Can you elaborate on the functionality you need to use? I can then point you to the appropriate service. -- Regards, Patrick RTC Work Item Component Lead |
![]() 1) As soon as I added as required plugin Follow-up actions run on the server, and you cannot use client-side plug-ins there. Can you elaborate on the functionality you need to use? I can then point you to the appropriate service. -- Regards, Patrick RTC Work Item Component Lead Thanks for answering. What we have to do is to make a synchronization between RTC and another application we use (HP Service Manager). To do this we need to get information from the RTC and transmit it through a web service. This is the action I'm focusing now. The synchronization between the two (let's call it bridge), will go both ways and is related to the fact that both applications are in use but not by the same people, but we need to make the connection between them so that we have all the information changed in one place and not in two places. Hope this was clear enough. |