workitem state
![](http://jazz.net/_images/myphoto/72ceea46404d95cca2e9846c0e641c2f.jpg)
Hi
I have need some help..
When I resolve my defect I can chooce between these states:
http://img525.imageshack.us/img525/1268/statewg3.th.jpg
I want to know in which attribute of the database I can find them, because I'm extending the datawarehouse with this attribute.
Thanks
I have need some help..
When I resolve my defect I can chooce between these states:
I want to know in which attribute of the database I can find them, because I'm extending the datawarehouse with this attribute.
Thanks
6 answers
![](http://jazz.net/_images/myphoto/72ceea46404d95cca2e9846c0e641c2f.jpg)
Hi,
the attribute is IWorkItem.RESOLUTION_PROPERTY / IWorkItem.getResolution2(). You can get the labels, icons and the value set from the work item's workflow info:
IWorkItemClient workItemClient= (IWorkItemClient) teamRepository.getClientLibrary(IWorkItemClient.class);
IWorkflowInfo workflowInfo= workItemClient.findWorkflowInfo(workItem, monitor);
String name= workflowInfo.getResolutionName(workItem.getResolution2());
...
HTH,
Christof
the attribute is IWorkItem.RESOLUTION_PROPERTY / IWorkItem.getResolution2(). You can get the labels, icons and the value set from the work item's workflow info:
IWorkItemClient workItemClient= (IWorkItemClient) teamRepository.getClientLibrary(IWorkItemClient.class);
IWorkflowInfo workflowInfo= workItemClient.findWorkflowInfo(workItem, monitor);
String name= workflowInfo.getResolutionName(workItem.getResolution2());
...
HTH,
Christof
![](http://jazz.net/_images/myphoto/72ceea46404d95cca2e9846c0e641c2f.jpg)
Hi,
the attribute is IWorkItem.RESOLUTION_PROPERTY / IWorkItem.getResolution2(). You can get the labels, icons and the value set from the work item's workflow info:
IWorkItemClient workItemClient= (IWorkItemClient) teamRepository.getClientLibrary(IWorkItemClient.class);
IWorkflowInfo workflowInfo= workItemClient.findWorkflowInfo(workItem, monitor);
String name= workflowInfo.getResolutionName(workItem.getResolution2());
...
HTH,
Christof
Sorry, but I don't understand
I haven't IWorkItemClient class...
![](http://jazz.net/_images/myphoto/72ceea46404d95cca2e9846c0e641c2f.jpg)
If your code is on the RTC server (if not, what API are you working with?) you can use the IWorkItemServer service instead.
Regards,
Christof
Jazz Work Item team
I migrated to RTC1.
I entered the code lines but they give errors (cannot be resolve). I think that these errors relate the plugins required.
Which jar must add between required?
![](http://jazz.net/_images/myphoto/72ceea46404d95cca2e9846c0e641c2f.jpg)
On the server you'd need com.ibm.team.workitem.service, com.ibm.team.workitem.common and com.ibm.team.repository.service, com.ibm.team.repository.common (and possibly others) as your plug-in dependencies (note that on the server too you would create a plug-in). Have you installed the source code available from the download page?
Christof
Jazz Work Item team
cceliberti wrote:
Christof
Jazz Work Item team
cceliberti wrote:
cmartiwrote:
If your code is on the RTC server (if not, what API are you working
with?) you can use the IWorkItemServer service instead.
Regards,
Christof
Jazz Work Item team
I migrated to RTC1.
I entered the code lines but they give errors (cannot be resolve). I
think that these errors relate the plugins required.
Which jar must add between required?