How to get project area name via IWorkItem
If I have a reference to an IWorkItem object, how do I get the name of the project area in which the work item is defined?
|
2 answers
This should work -
IProjectAreaHandle projectAreaHandle = workItem.getProjectArea(); |
This should work - The above will not work as my code is server-side only, however; it did lead me to the solution which is to retrieve the IRepositoryItemService service object and invoke the IRepositoryItemService.fetchItem(projectAreaHandle, IRepositoryItemServer.COMPLETE) method. |
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.