Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

IResolution value list for a workitem

Who do I get the IResolution value list for a workitem through the Jazz API
using plain Java code?

--
Sincerely,

Ahmed Hadad

0 votes



2 answers

Permanent link
Who do I get the IResolution value list for a workitem through the Jazz
API using plain Java code?

If you have a workitem, then you can find the resolutions as follows:

IWorkflowInfo workflowInfo= workItemClient.findWorkflowInfo(workitem,
monitor);

For all resolutions:
Identifier<IResolution>[] resolutions= workflowInfo.getAllResolutionIds();

For all resolutions of a specific state:
Identifier<IResolution>[] resolutions=
workflowInfo.getStateResolutionIds(stateId);

For all resolutions of a specific action:
Identifier<IResolution>[] resolutions=
workflowInfo.getResolutionIds(actionId);

The name and icon of the resolution can then be accessed using
String name= workflowInfo.getResolutionName(resolutionId);
URL iconURL= workflowInfo.getResolutionIconName(resolutionId);
ImageDescriptor imageDescriptor= WorkItemUI.getImageDescriptor(iconURL);


HTH,
Patrick
Jazz Work Item Team

0 votes


Permanent link
Thanks a lot.

--
Sincerely,

Ahmed Hadad

"Patrick Streule" <patrick_streule> wrote in message
news:g3svfl$84m$1@localhost.localdomain...
Who do I get the IResolution value list for a workitem through the Jazz
API using plain Java code?

If you have a workitem, then you can find the resolutions as follows:

IWorkflowInfo workflowInfo= workItemClient.findWorkflowInfo(workitem,
monitor);

For all resolutions:
Identifier<IResolution>[] resolutions= workflowInfo.getAllResolutionIds();

For all resolutions of a specific state:
Identifier<IResolution>[] resolutions=
workflowInfo.getStateResolutionIds(stateId);

For all resolutions of a specific action:
Identifier<IResolution>[] resolutions=
workflowInfo.getResolutionIds(actionId);

The name and icon of the resolution can then be accessed using
String name= workflowInfo.getResolutionName(resolutionId);
URL iconURL= workflowInfo.getResolutionIconName(resolutionId);
ImageDescriptor imageDescriptor= WorkItemUI.getImageDescriptor(iconURL);


HTH,
Patrick
Jazz Work Item Team

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

Question asked: Jun 24 '08, 3:50 p.m.

Question was seen: 5,303 times

Last updated: Jun 24 '08, 3:50 p.m.

Confirmation Cancel Confirm