It's all about the answers!

Ask a question

Is it possible to get the project area from build result UUID?


Stephen Lai (134) | asked Apr 02 '15, 4:55 a.m.

Now I have build result UUID in string format and want to get the associated project area. Is it possible?

Here's the code I have

UUID id = UUID.valueOf("_TV2EEcMDEeS4Jobxo3QE1w");
IBuildResultHandle buildResultHandle = (IBuildResultHandle) IBuildResult.ITEM_TYPE.createItemHandle(id, null);
IBuildResult buildResult = (IBuildResult) repo.itemManager().fetchCompleteItem(buildResultHandle, ItemManager.DEFAULT, monitor);

Accepted answer


permanent link
Ralph Schoon (63.2k33646) | answered Apr 02 '15, 5:09 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
From the build result, get the build definition. From the build definition get the process area and from that get the Project area.

              IBuildDefinition bHandle = buildResult.getBuildDefinition()
              IBuildDefinition bDef = resolve bHandle
              bDef.getProcessArea()

Stephen Lai selected this answer as the correct answer

Comments
Stephen Lai commented Apr 02 '15, 6:42 a.m.

Big thanks, Ralph! It works!

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.