Fetching Selected Work Item Number Programmatically in eclipse using rtc API
![]()
Hi Guys,
I am querying work items and I am able to display the query results in the work items view (in eclipse). Now if user double click on a work item then the selected work item will be opened in the work item editor.
Can any one please tell me the way to access the selected work item programmatically. I want to display that work item number in one text box.
Regards,
Rajagopal
|
Accepted answer
![]()
Ralph Schoon (62.0k●3●36●43)
| answered Jan 19 '15, 2:06 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
This is basically an Eclipse extension question. https://rsjazz.wordpress.com/2014/02/21/adding-context-menus-for-jazz-objects-to-the-rtc-eclipse-client/ shows an example for a context menu. This works also for actions and the like. There is a lot of Eclipse extension material around that you can search for. You can also search the RTC SDK for examples. They all use selections.
Rajagopal Subhash selected this answer as the correct answer
|
One other answer
![]()
what data is in the list view? I assume its ID, ID = Number.. so you are done..
otherwise you can get a workitem object from its ID by using workItemCommon.findWorkItemById(id, profile, monitor) |