How to access (planning) WorkItems?
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
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, |
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 |
I'm trying to connect our own Planning tool to Jazz to sync both. I've 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
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.