Get work item from whole repository with Java API

Description
etruog
Posts: 2
Joined: Wed May 25, 2016 11:50 am

Get work item from whole repository with Java API

Postby etruog » Mon May 30, 2016 8:16 am

Hello community

I'm trying to figure out how to get a work item from the whole repository without the project ID.
Every function i can find to get a work item needs the project ID as parameter.

What I wanna do is to find a work item by ID to find out in which project this work item is. After that i want to create a new work item in the same project and link it to the work item i found.

I tried something like

Code: Select all

trackerService.getWorkItemById("Default Repository", itemID);

or

Code: Select all

trackerService.getWorkItemById("Reporitory", itemID);

but none of these are working.

With the web interface it is possible to search the whole repository for a particular work item.
So my question is: How can i do this with the Java API?

Thank you very much! :)

stewarca
Posts: 3
Joined: Tue Mar 13, 2018 4:16 pm

Re: Get work item from whole repository with Java API

Postby stewarca » Wed Mar 21, 2018 4:06 pm

Did you find a way to do this?


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 2 guests