It's all about the answers!

Ask a question

Value of Filed Against?


AMEYA KALE (172) | asked May 08 '19, 9:07 a.m.
edited May 09 '19, 5:49 a.m. by Ralph Schoon (58.2k23642)

 How to get the value of Filed Against ?

Accepted answer


permanent link
Luca Martinucci (952277108) | answered May 08 '19, 9:47 a.m.
Do you need to get it programmatically, using server-side Java API?

AbstractService pluginAbstractService = (AbstractService) this;
IRepositoryItemService repositoryItemService = pluginAbstractService.getService(IRepositoryItemService.class);
ICategoryHandle categoryHandle = workItem.getCategory();
ICategory category = (ICategory) repositoryItemService.fetchItem(categoryHandle, IRepositoryItemService.COMPLETE);
String categoryName = category.getName();

AMEYA KALE selected this answer as the correct answer

Comments
AMEYA KALE commented May 09 '19, 3:47 a.m.
Thank your time and effort for the above code snippet.

I tried the following code by which I could retrieve the current value of "Filed Against"

ICategoryHandle iCategoryHandle = workItem.getCategory();

workItemCommon.resolveHierarchicalName(iCategoryHandle,monitor); 


2 other answers



permanent link
Kenny Smith (277412) | answered May 08 '19, 9:33 a.m.

 These are determined by the Categories specified in the project settings. Open the project configuration in the web client, and then click on the Categories tab. Categories are mapped to teams. Think of it as a way to direct a work item to a team without having to know a specific person on that team (such as when creating a defect). This allows the team to prioritize work items and assign to developers based on their availability. 


permanent link
Ralph Schoon (58.2k23642) | answered May 08 '19, 10:33 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Your answer


Register or to post your answer.