It's all about the answers!

Ask a question

How to access (planning) WorkItems?


Kai Nehring (3116) | asked Apr 16 '08, 2:24 p.m.
Hi,

I'm trying to connect our own Planning tool to Jazz to sync both. I've tried the following code but I miss location and flags.

IItemManager itm = repo.itemManager();
IItem it = itm.fetchCompleteItem(location, flags, new NullProgressMonitor() );

Where can I get the location?

My other problem: As far as I know, it's not possible to alter an work item on the client; the server is responsible for that. It it true? If yes, how can I modify/write a work item (any Service-Plugin)? How does TeamConcert use work items?

Thanks in advance
Kai

3 answers



permanent link
Todd Lainhart (40611) | answered Apr 16 '08, 3:37 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
It's not clear what your programming environment is. I assume that
you've got a Java client that's using the Jazz client API?

If true, then what item are you attempting to fetch, and how are you
identifying that item?

If not, then there may be other ways off retrieving and sync'ing your
data. For example, you can take advantage of HTTP and REST to retrieve
WorkItem information (but not update it).

-- Todd (Jazz Team)

Hi,

I'm trying to connect our own Planning tool to Jazz to sync both. I've
tried the following code but I miss location and flags.

IItemManager itm = repo.itemManager();
IItem it = itm.fetchCompleteItem(location, flags, new
NullProgressMonitor() );

Where can I get the location?

My other problem: As far as I know, it's not possible to alter an work
item on the client; the server is responsible for that. It it true? If
yes, how can I modify/write a work item (any Service-Plugin)? How does
TeamConcert use work items?

Thanks in advance
Kai

permanent link
Kai Nehring (3116) | answered Apr 16 '08, 4:48 p.m.
By now, we use our own planning tool; an Eclipse Plugin connects to our server (which offers distributed planning) and fetches iterations, story cards, ...

I want to create a connector that connects our planning server to Jazz server. We want to sync our server with Jazz. In the end, a developer should see the story card (= work item) in TeamConcert and should be able to add new work items in Jazz (which will be copied to our planning server during the next sync)

I built a stand-alone connector, that allows our server to login to Jazz server. Next step is to retrieve work items from a work area and transform these to our story card, and vice versa. The mapping "story card to work item" isn't that hard since I've found the workitem.ecore model.

If possible, I want to use the same interface and services TeamConcerts uses to add and retrieve work items from Jazz server instead of writing an new service-plugin (which does the same). But I have no idea how to do that.

Kai


It's not clear what your programming environment is. I assume that
you've got a Java client that's using the Jazz client API?

If true, then what item are you attempting to fetch, and how are you
identifying that item?

If not, then there may be other ways off retrieving and sync'ing your
data. For example, you can take advantage of HTTP and REST to retrieve
WorkItem information (but not update it).

-- Todd (Jazz Team)


permanent link
Patrick Streule (4.9k21) | answered Apr 25 '08, 4:08 a.m.
JAZZ DEVELOPER
I'm trying to connect our own Planning tool to Jazz to sync both. I've
tried the following code but I miss location and flags.

IItemManager itm = repo.itemManager();
IItem it = itm.fetchCompleteItem(location, flags, new
NullProgressMonitor() );

Where can I get the location?

My other problem: As far as I know, it's not possible to alter an work
item on the client; the server is responsible for that. It it true? If
yes, how can I modify/write a work item (any Service-Plugin)? How does
TeamConcert use work items?

Take a look at IAuditableCommon, IWorkItemCommon and IQueryCommon. These
are the client libraries to access (work) items and queries which we use
in the work item component.

They have sub-interfaces for the client and the server, e.g.
IWorkItemClient and IWorkItemServer. As long as you write your code
against the I*Common interfaces, it will run transparently both on the
client and the server.

To get those, use:
Client: repo.getClientLibrary(IWorkItemClient.class)
Server: getService(IWorkItemServer.class)

Usually, you get work item handles from a query (either using the
higher-level IQueryCommon interfaces or the lower level IQueryService)
and then resolve them to work items (e.g. using IAuditableCommon)

If you plan to modify work items on the client, take a look at
WorkItemOperation and IWorkItemWorkingCopyManager.

HTH,
Patrick
Jazz Work Item Team

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.