It's all about the answers!

Ask a question

Programmatic Work Item Creation


Antonio Bonanni (1111717) | asked Mar 15 '12, 8:37 a.m.
Hi All,

i'm trying to create programmatically a work item from one project area to another project area: i've developed successfully a client using the plain java api that works good.
Now i've to "attach" this as plugin into server side but i don't know if:

1) i've to create a Custom Advisor or an Operation Participant or what ( i need to create the new work item, in another project area when in my project area the user create a work item ) ?

2) i can use only the client library or exist a different way ?

3) Documentation ( wiki or something else ) ?

Thanks

6 answers



permanent link
Boris Kuschel (331113) | answered Mar 15 '12, 8:37 a.m.
JAZZ DEVELOPER
On Thu, 15 Mar 2012 12:42:15 +0000, whatty wrote:

Hi All,

i'm trying to create programmatically a work item from one project area
to another project area: i've developed successfully a client using the
plain java api that works good.
Now i've to "attach" this as plugin into server side but i don't know
if:

1) i've to create a Custom Advisor or an Operation Participant or what (
i need to create the new work item, in another project area when in my
project area the user create a work item ) ?

2) i can use only the client library or exist a different way ?

3) Documentation ( wiki or something else ) ?

Thanks


If you want to create a server side operation participant you will need
to use server side APIs. Fortunately, the are often similar to the client
side but definitely not the same so you will need to port your plug-in.
The extensions landing page is a good place to start: https://jazz.net/
library/article/784


--
Boris Kuschel
Jazz Jumpstart Team - IBM Software, Rational
My Blog: http://blog.boriskuschel.com/
--------------------------------------------------------------------------
This post represents my own opinion, thoughts, and conclusions based on my
knowledge of Jazz and the Jazz solutions.
For details on receiving official IBM Rational support please go to:
https://jazz.net/community/support/

permanent link
Antonio Bonanni (1111717) | answered Mar 21 '12, 6:04 p.m.
Ok,

now i developed the plugin but i can't deploy successfully. I get always this error and i don't know why: i checked up my dependencies but doesn't work.

ERROR eam.repository.provision.internal.ProvisionService - CRJAZ0291I Impossibile avviare il bundle "WorkItemCreationAdvisor 1.0.0.201203212246".
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Require-Bundle: com.ibm.team.repository.client; bundle-version="1.1.1"


Any Idea ?


permanent link
sam detweiler (12.5k6195201) | answered Mar 21 '12, 6:29 p.m.
Ok,

now i developed the plugin but i can't deploy successfully. I get always this error and i don't know why: i checked up my dependencies but doesn't work.

ERROR eam.repository.provision.internal.ProvisionService - CRJAZ0291I Impossibile avviare il bundle "WorkItemCreationAdvisor 1.0.0.201203212246".
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Require-Bundle: com.ibm.team.repository.client; bundle-version="1.1.1"


Any Idea ?



com.ibm.team.repository.client is a client side jar file. it is not installed on the server.
server side code cannot use client side apis

permanent link
sam detweiler (12.5k6195201) | answered Mar 21 '12, 6:31 p.m.
You will also need this to be a Participant instead of an Advisor.
An Advisor cannot make changes to the data, a Participant can.

Sam

permanent link
Antonio Bonanni (1111717) | answered Mar 22 '12, 5:53 a.m.
You will also need this to be a Participant instead of an Advisor.
An Advisor cannot make changes to the data, a Participant can.

Sam


Hi Sam,

thank you for your reply. Your help was been very useful. I rewrote my plugin as OperationParticipant. The problem is for the serverside api's: i don't know how to rewrite my client ( with connection to repository ) for server side. I'll try and feed you back

permanent link
sam detweiler (12.5k6195201) | answered Mar 22 '12, 8:27 a.m.
You will also need this to be a Participant instead of an Advisor.
An Advisor cannot make changes to the data, a Participant can.

Sam


Hi Sam,

thank you for your reply. Your help was been very useful. I rewrote my plugin as OperationParticipant. The problem is for the serverside api's: i don't know how to rewrite my client ( with connection to repository ) for server side. I'll try and feed you back
you don't need to 'connect' to the repository. you ARE the repository..

the parameters give u access the the core objects to do what u need.
but the parms are not direct, this is Object Oriented, so u may have some indirect calls.

Your answer


Register or 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.