How can i get the "Filed Against" from a work item on rtc?
I need to get the value of the Filed Against, but when i get the category is not the string im looking for.
Any idea?
|
One answer
Ralph Schoon (63.4k●3●36●46)
| answered Jan 03 '19, 5:18 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
See https://rsjazz.wordpress.com/2013/01/02/working-with-work-item-attributes/ section Category
|
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.
Comments
How do you get it? What do you expect? What do you see instead?
I need to bring the name of the project area to which a workiyem belongs, if I do workitemstate.getCategory (). ToString () I get a handle and there is not the filed against name
There seem to be multiple issues here:
- You say that you want the name of the project area, so you would need to query the project area of a work item, not the category.
ICategory category = (ICategory) repositoryItemService.fetchItem(categoryHandle, null);
I would strongly recommend to get yourself familiar with the basics on how to work with the Jazz API by reading some posts on Ralph's Blog first (rsjazz.wordpress.com)