How can I programmatically get the list of Plans in an RTC Project Area using plain java client api and then access the workitems ?
![]() Our organization uses an RTC server to maintain all the work items. I need to develop a java client and connect to the jazz server [https://<OurOurganizationRTCWebSite>:9443/ccm/].I have done the login part but I need to retrieve the RTC plans from the project areas and then from the plans retrieve the work items.
Please help me.
Its urgent
|
2 answers
![]()
Ralph Schoon (63.3k●3●36●46)
| answered Jun 06 '17, 7:55 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER There is no really supported Java Plan API. Plans are no longer supported in the Eclipse client either. A plan is also really only a work item query. You should not try to work with the plans API, you should use the work item API.
Instead of trying to work with a plan use https://rsjazz.wordpress.com/2012/11/19/using-expressions-for-automation/ expressions and set the values such as planned for and the filed against. values.
Pretty much all code needed for the work item API can be found in the work item command line, including tooling to get iterations from timelines etc.: https://rsjazz.wordpress.com/2017/03/29/the-work-item-command-line-is-now-open-source/
Comments Hi ralph,
Thanks ,but it would be better if you provide me the code for getting the timeline and from timeline iterations and then retrieve the workitems and its attributes.
I am in desire need .Please help me.
If you would be in dire need, you would basically look into the code provided on the links.
In addition, the code published in the blogs actually compiles which code pasted here does not. Thanks Ralph,
Can I get all work items id of a particular iteration from that particular iteration?If so, help me
And along with with its attributes Yes, you can use queries or expressions to do so. I provided you links with what you need to get started if you where interested. Expressions are harder, because you have to find the iteration objects in the database. The blog I am referring to provides pretty much all the API code you would need in examples. Additional examples can be found here in this forum if you know how to search.
Good luck.
I have used the code below but i cannot get the name of the workitems and all its attributes .Also i need to get from which iteration the workitrem came. Please help me
showing 5 of 7
show 2 more comments
|
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.