It's all about the answers!

Ask a question

rtc category get from item id(String)


Yavuz Yasin CELIK (51510) | asked Sep 09 '15, 3:30 a.m.
edited Sep 09 '15, 3:31 a.m.
 How can I get Category from item id(String) using API?

Comments
Ralph Schoon commented Sep 10 '15, 4:33 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Please provide what you have - what kind of object?

See How should I ask a question in the Forum if I want to receive useful answers?


Yavuz Yasin CELIK commented Sep 10 '15, 8:22 a.m. | edited Sep 10 '15, 8:33 a.m.

 ICategory category = null;

try {
category = (ICategory) teamRepository.itemManager().fetchCompleteItem(iCategoryHandles, IItemManager.DEFAULT, null);
} catch (TeamRepositoryException e) {
e.printStackTrace();
logger.error(e);



// That is what I am looking for
ICategory category2 = SomeMethod(category.getItemId().getUuidValue());

One answer



permanent link
Ralph Schoon (63.1k33646) | answered Sep 10 '15, 8:33 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
This does no seem to make so much sense.... If you have th handle already, why do u want to use the UUID? Anyway https://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/ explains how to get a handle from the UUID and https://rsjazz.wordpress.com/2015/02/27/a-rtc-workitem-command-line-version-2-2/ has tons of code that you might be interested in.

As long as you can not provide a clear question, that is pretty much all I can hint.

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.