How to get RTC work item attribute data using java API?
Melissa McKinley (13●1)
| asked Feb 09 '22, 5:49 a.m.
edited Feb 09 '22, 9:16 a.m. by Ralph Schoon (63.1k●3●36●46) I am using below code and it returns some information about "Filed Against" attribute. But there I am not able to find attribute data.
IAttribute someAttribute= workItemClient.findAttribute(projectAreaHandle, workItem.CATEGORY_PROPERTY, monitor);
|
Accepted answer
Ralph Schoon (63.1k●3●36●46)
| answered Feb 09 '22, 9:21 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The question seems incomplete and is not really a question either, the tagging with just extending is not helping. If you ask a question again, read the tagging documentation and select at least the product you ask about.
Having said that, with that call you only find the attribute and its type. You have to perform a getValue on the work item and this attribute to access the value contained.
See https://rsjazz.wordpress.com/2013/01/02/working-with-work-item-attributes/ how you can use the Java API with attributes. Also see https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ and have a look at the referenced getting started blogs to understand the basics of the EWM Java APIs.
Melissa McKinley selected this answer as the correct answer
Comments It is very informative and helpful to me. Thanks Please accept the answer as correct. Please note that you can comment answers which avoids creating unnecessary answers that are not answers. |
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.