Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

workitem state

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

0 votes



6 answers

Permanent link
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

0 votes

Comments

I know this is an old answer, nevertheless it helped me, thank you!.


Permanent link
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...

0 votes


Permanent link
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

0 votes


Permanent link
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?

0 votes


Permanent link
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?

0 votes


Permanent link
Have you installed the source code available from the download page?



Yes, I did.

0 votes

Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,954

Question asked: Jul 30 '08, 5:24 a.m.

Question was seen: 8,625 times

Last updated: Sep 04 '13, 5:35 p.m.

Confirmation Cancel Confirm