Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Project Area Releases in Java API

Hi, Can anyone please help with getting the list of Releases in a project area in the api (client or server). Specifically, I would like to get the build result name (Artifact column) for a Release. Thanks
Sola

0 votes



2 answers

Permanent link
Hi, Can anyone please help with getting the list of Releases in a project area in the api (client or server). Specifically, I would like to get the build result name (Artifact column) for a Release. Thanks
Sola


It looks like I should have been searching for 'deliverable', so different question now....

for my custom field which lists the release (ie. deliverables), i have this to get the value

--------
IDeliverableHandle deliverableHandle = (IDeliverableHandle) attribute.getValue(auditable, workItem, monitor);
--------

but this returns an IDeliverableHandle. How do I get the actual IDeliverable object (from which I can get its name) with this?

and when I do get the name....

--------
IDeliverable deliverable = (IDeliverable) workItemService.findDeliverableByName(projectAreaHandle, deliverableName, (ItemProfile<IDeliverable>) profile, monitor);
IItemHandle artifact = deliverable.getArtifact();
--------

2nd question....how do i get the artifact name?


*** Actually, the truly ideal solution is if I can do this in javascript and use a calc value customisation. All i want to do is get the build label (artifact) of the selected release and display in a field. Anyone know if this can be done?


Thanks.
Sola

0 votes


Permanent link
Hi, Can anyone please help with getting the list of Releases in a project area in the api (client or server). Specifically, I would like to get the build result name (Artifact column) for a Release. Thanks
Sola


hi
this is what I did:

List<IDeliverable> deliverables = workItemCommon.findDeliverablesByProjectArea(projectArea, true, IDeliverable.FULL_PROFILE, monitor);

for (IDeliverable deliv : deliverables) {
System.out.println(deliv.getName());
}

Roger

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,953

Question asked: Sep 21 '11, 10:35 a.m.

Question was seen: 5,798 times

Last updated: Sep 21 '11, 10:35 a.m.

Confirmation Cancel Confirm