How to modify a deliverable?
![]()
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
![]()
Ralph Schoon (62.7k●3●36●43)
| 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
|