It's all about the answers!

Ask a question

How can i get the "Filed Against" from a work item on rtc?


Álvaro Alonso (35127) | asked Jan 03 '19, 3:41 a.m.

 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?


Comments
Lukas Steiger commented Jan 03 '19, 3:55 a.m.

How do you get it? What do you expect? What do you see instead?


Álvaro Alonso commented Jan 03 '19, 4:58 a.m.

 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 


Lukas Steiger commented Jan 03 '19, 5:11 a.m.

 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.

- If you need full category info, you have to request it:

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)

One answer



permanent link
Ralph Schoon (63.2k33646) | answered Jan 03 '19, 5:18 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.