Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes


Accepted answer

Permanent link
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

0 votes


One other answer

Permanent link
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)


0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,939

Question asked: Jan 18 '15, 1:31 a.m.

Question was seen: 4,352 times

Last updated: Jan 19 '15, 2:06 a.m.

Confirmation Cancel Confirm