It's all about the answers!

Ask a question

workitem state


Carla Celiberti (91151) | asked Jul 30 '08, 5:24 a.m.
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

6 answers



permanent link
Christof Marti (681) | answered Jul 31 '08, 2:55 a.m.
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!.


permanent link
Carla Celiberti (91151) | answered Jul 31 '08, 4:49 a.m.
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...

permanent link
Christof Marti (681) | answered Jul 31 '08, 11:36 a.m.
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

permanent link
Carla Celiberti (91151) | answered Sep 03 '08, 8:54 a.m.
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?

permanent link
Christof Marti (681) | answered Sep 08 '08, 2:58 a.m.
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:
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?

permanent link
Carla Celiberti (91151) | answered Sep 12 '08, 8:02 a.m.
Have you installed the source code available from the download page?



Yes, I did.

Your answer


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