It's all about the answers!

Ask a question

How to modify a deliverable?


Jose De la cruz (813) | asked Jun 30 '14, 5:19 p.m.
 I want to modify a deliverable(Release) from the java API 
I have the following but I'm getting an exception:

IWorkItemCommon workItemService = (IWorkItemCommon) repository.getClientLibrary(IWorkItemCommon.class);
List<IDeliverable> releases = null;
releases = workItemService.findDeliverablesByProjectArea((IProjectArea) projectAreaWorkingCopy.getUnderlyingProcessItem().getWorkingCopy(),true,IDeliverable.DEFAULT_PROFILE,null);

for(IDeliverable release : releases){
   if(release.getItemId().getUuidValue().equals(propagateId)){
         release = workItemService.createDeliverable((IProjectArea) projectAreaWorkingCopy.getUnderlyingProcessItem().getWorkingCopy(), "New name", null);
    //modify deliverable attributes here....
           release = workItemService.saveDeliverable(release, null);
  }
}

with this code I create another resource but, how could I modify an existent deliverable?

Accepted answer


permanent link
Ralph Schoon (62.7k33643) | answered Jul 01 '14, 4:02 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Please see this article for some hints: https://jazz.net/library/article/807
Jose De la cruz selected this answer as the correct answer

Your answer


Register or to post your answer.