How to restrict a value for a custom att of type WorkItem?
Hi,
I have created a custom attribute of type WorkItem.
When I click on choose value, a pop up comes to select a work item type.
I want to restrict it to select only 'Defect' as a type.
Is it possible?
Or can we validate that the selected workitem is of type Defect only?
Thanks in advance for all help.
Accepted answer
The documented APIs do not allow attribute customization, to detect more complex information about complex items such as work items apart from the ID and the Item display name, for all I know. It is possible to use more internal and unsupported API to get this information if attribute customization is executed in the browser. This is discouraged and only works in the Web browser, not in the EWM Eclipse client.
It would be possible to use Java Based extensions (attribute customization or preconditions/advisors) to prevent saving with an incorrect value.