It's all about the answers!

Ask a question

Value of Filed Against?

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

 How to get the value of Filed Against ?

Accepted answer

permanent link
Luca Martinucci (1.0k396112) | 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

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();


2 other answers

permanent link
Kenny Smith (302614) | 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 (63.2k33646) | answered May 08 '19, 10:33 a.m.

Your answer

Register or 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.