Welcome to the Jazz Community Forum
IResolution value list for a workitem

2 answers

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

Thanks a lot.
--
Sincerely,
Ahmed Hadad
"Patrick Streule" <patrick_streule> wrote in message
news:g3svfl$84m$1@localhost.localdomain...
--
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