It's all about the answers!

Ask a question

Getting a reference to or instantiate a IProjectAreaHandle o


Ahmed Hadad (106187) | asked May 06 '08, 2:42 p.m.
How do a get a reference to or instantiate a IProjectAreaHandle object? If
possible, post a sample code showing this.

I have a ITeamRepository object at this point.

Thanks.

--
Sincerely,

Ahmed Hadad

12 answers



permanent link
Jared Burns (4.5k29) | answered Jul 23 '08, 1:02 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I don't know anyone who's run RTC plugins on Eclipse 3.2. Feel free to
try running our plugin against the earlier version, of course. But I
believe you're in uncharted waters.

Jared Burns
Jazz Process Team


ying1 wrote:
Right after I posted this, I realized that removing the dependency to
com.ibm.team.process.client may cause other plugins that I use to fail
in dependency check.. and it does... Ah well.

Sorry about that.

Since com.ibm.team.process.client does not specify a version of
org.eclipse.xsd, perhaps an earlier version (say org.eclipse.xsd
2.2.2) can work with it ?

permanent link
Ying Chen (261) | answered Jul 17 '08, 7:04 a.m.
JAZZ DEVELOPER
Right after I posted this, I realized that removing the dependency to com.ibm.team.process.client may cause other plugins that I use to fail in dependency check.. and it does... Ah well.

Sorry about that.

Since com.ibm.team.process.client does not specify a version of org.eclipse.xsd, perhaps an earlier version (say org.eclipse.xsd 2.2.2) can work with it ?

permanent link
Ying Chen (261) | answered Jul 17 '08, 6:55 a.m.
JAZZ DEVELOPER
Is there a way to get an IProjectArea without using any items from com.ibm.team.process.client plug-in ?

I am writing code to be delivered on top of a product that is based on Eclipse 3.2, and have narrowed down to a dependency that the team.process.client needs that is conflicting with the packages that I have... org.eclipse.xsd.

Is it possible at all ?

permanent link
Kai-Uwe Maetzel (85611) | answered May 08 '08, 12:49 p.m.
JAZZ DEVELOPER
IProcessClientService clientService =
teamRepository.getClientLibrary(IProcessClientService.class);

IProcessArea area = (IProjectArea) clientService.findProcessArea(
new URI(areaName),
IProcessItemService.ALL_PROPERTIES,
progressMonitor);

Kai
Jazz Process Team

Ahmed Hadad (IBM) wrote:
Can you, please, post some sample code? Thanks.

permanent link
Ahmed Hadad (106187) | answered May 08 '08, 10:58 a.m.
Can you, please, post some sample code? Thanks.

--
Sincerely,

Ahmed Hadad

"Kai-Uwe Maetzel" <kai> wrote in message
news:fvt21v$u8r$1@localhost.localdomain...
Get the process client library (IProcessClientService) and use
'findProcessArea' with a URI that you constructed based on the name.

Kai
Jazz Process Team

Ahmed Hadad (IBM) wrote:
I will have the name or that identifies the project area at run time.

permanent link
Kai-Uwe Maetzel (85611) | answered May 07 '08, 4:05 p.m.
JAZZ DEVELOPER
Get the process client library (IProcessClientService) and use
'findProcessArea' with a URI that you constructed based on the name.

Kai
Jazz Process Team

Ahmed Hadad (IBM) wrote:
I will have the name or that identifies the project area at run time.

permanent link
Ahmed Hadad (106187) | answered May 07 '08, 3:57 p.m.
I will have the name or that identifies the project area at run time.

--
Sincerely,

Ahmed Hadad

"Kai-Uwe Maetzel" <kai> wrote in message
news:fvt18p$tvq$2@localhost.localdomain...
If a jazz server contains multiple project areas, how do you know for
which one you have to create the work items?

Kai

Ahmed Hadad (IBM) wrote:
I am writing an external application that will interact with Jazz by
means
of the Jazz APIs. The application will not be running in the Jazz
environment. My application will be migrating defects (workitem) from
other
problem tracking systems (Bugzilla, CMVC, CQ and so on) into Jazz. I have
accomplish the login operation, and I have ITeamRepository object. I need
to
get a handle to the IProjectAreaHandle to create workitems there.

From parrym,

Specifically Ahmed is trying to migrate CMVC Defects to Jazz workitems
using the Item Connector APIs. The architecture is similar in nature
to the CQ Gateway, only this is a straight jazz application and not
implemented with OSGi bundles.

permanent link
Kai-Uwe Maetzel (85611) | answered May 07 '08, 3:52 p.m.
JAZZ DEVELOPER
If a jazz server contains multiple project areas, how do you know for
which one you have to create the work items?

Kai

Ahmed Hadad (IBM) wrote:
I am writing an external application that will interact with Jazz by means
of the Jazz APIs. The application will not be running in the Jazz
environment. My application will be migrating defects (workitem) from other
problem tracking systems (Bugzilla, CMVC, CQ and so on) into Jazz. I have
accomplish the login operation, and I have ITeamRepository object. I
need to
get a handle to the IProjectAreaHandle to create workitems there.

From parrym,

Specifically Ahmed is trying to migrate CMVC Defects to Jazz workitems
using the Item Connector APIs. The architecture is similar in nature
to the CQ Gateway, only this is a straight jazz application and not
implemented with OSGi bundles.

permanent link
Ahmed Hadad (106187) | answered May 07 '08, 3:37 p.m.
I am writing an external application that will interact with Jazz by means
of the Jazz APIs. The application will not be running in the Jazz
environment. My application will be migrating defects (workitem) from other
problem tracking systems (Bugzilla, CMVC, CQ and so on) into Jazz. I have
accomplish the login operation, and I have ITeamRepository object. I need to
get a handle to the IProjectAreaHandle to create workitems there.

From parrym,

Specifically Ahmed is trying to migrate CMVC Defects to Jazz workitems
using the Item Connector APIs. The architecture is similar in nature
to the CQ Gateway, only this is a straight jazz application and not
implemented with OSGi bundles.

--
Sincerely,

Ahmed Hadad

"Kai-Uwe Maetzel" <kai> wrote in message
news:fvt04o$te9$1@localhost.localdomain...
Can you give us a bit more context information? What do you try to
achieve? Without additional information it is hard to give a reasonable
answer.

Thanks, Kai
Jazz Process Team

Ahmed Hadad (IBM) wrote:
How do a get a reference to or instantiate a IProjectAreaHandle object?
If possible, post a sample code showing this.

I have a ITeamRepository object at this point.

Thanks.

permanent link
Kai-Uwe Maetzel (85611) | answered May 07 '08, 3:32 p.m.
JAZZ DEVELOPER
Can you give us a bit more context information? What do you try to
achieve? Without additional information it is hard to give a reasonable
answer.

Thanks, Kai
Jazz Process Team

Ahmed Hadad (IBM) wrote:
How do a get a reference to or instantiate a IProjectAreaHandle object?
If possible, post a sample code showing this.

I have a ITeamRepository object at this point.

Thanks.

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.