How to get Category Name by passing Category uuid (using Java Client Plain API)
Hello Community,
I am trying to fetch category name using category uuid as a input parameter , is it possible ?
As Solution ,I am already using hashmap to store categorylist as key and category uuidList as value and matching user input uuid with hashmap value and i am able to get category name , but was just curious to know is there any way by i can fetch category name using category uuid as a input parameter?
Thank you
|
Accepted answer
Ralph Schoon (63.6k●3●36●47)
| answered Jan 11 '21, 2:42 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
You can create an item handle based on the UUID and once you have the handle you can resolve the item.
ICategory.ITEM_TYPE.createItemHandle(UUID.valueOf(uuid_string), null);
Rajat Krishnan selected this answer as the correct answer
Comments
Rajat Krishnan
commented Jan 11 '21, 2:49 a.m.
Hi Ralph ,
This worked for me
Thank you very much
|
One other answer
The only alternative I know of (using core functions) is:
If you need an exact match, you'll have to execute a custom query.
<time datetime="2012-07-21T23:15:15" itemprop="dateCreated" style="border: 0px; box-sizing: inherit; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</time>
|
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.