How to get the Workitem type properties ?
Hello Team
I am working on RTC API extensions. I want to know how can i get the properties of WI programmatically? I get WI as Story but i am not able to get the Filed Against property of Story programmatically ? Please help :( |
Accepted answer
Ralph Schoon (63.5k●3●36●46)
| answered Jun 26 '15, 10:54 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Jun 26 '15, 10:59 a.m.
You want to train yourself on using the API. Start here: https://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/
related is https://rsjazz.wordpress.com/2013/01/02/working-with-work-item-attributes/ You need to get the IAttribute for IWorkItem.CATEGORY_PROPERTY IAttribute category = workItemCommon.findAttribute(projectArea, IWorkItem.CATEGORY_PROPERTY, monitor); Then you can the value and cast it. if(workItem.hasAttribute(category )){ Object value = workItem.getValue(category ) } Please read the post above to get an idea how the API works. vinitha dsouza selected this answer as the correct answer
Comments
vinitha dsouza
commented Jun 29 '15, 11:54 a.m.
Thank you so much for the ans .
Consider reading the links I provided above for an answer. Thanks.
vinitha dsouza
commented Jun 30 '15, 12:01 p.m.
Hi Ralph
Ralph Schoon
commented Jun 30 '15, 3:28 p.m.
| edited Jun 30 '15, 3:29 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The post also says:
|
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.