workitem state
Hi
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
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 Comments
Gustavo Leyva
commented Sep 04 '13, 5:35 p.m.
I know this is an old answer, nevertheless it helped me, thank you!.
|
Hi, Sorry, but I don't understand I haven't IWorkItemClient class... |
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 |
If your code is on the RTC server (if not, what API are you working with?) you can use the IWorkItemServer service instead. 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? |
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: cmartiwrote: |
Have you installed the source code available from the download page? Yes, I did. |
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.