It's all about the answers!

Ask a question

Navigation from a Work Item to other Website

Chandan M B (1133164) | asked Apr 09 '15, 1:44 a.m.
edited Apr 09 '15, 2:12 a.m. by Ralph Schoon (62.3k33643)
On Save of a Work Item , i need to navigate to ""
I have written a server side plugin, on click its coming inside my code snippet and also i am able to get workitem id.

But i need to know how to navigate to the respective url so that it opens in the browser. 

Chandan M B commented Apr 09 '15, 7:11 a.m.

Desktop desktop=Desktop.getDesktop();
                        desktop.browse(new URI(""));
                    }catch(Exception e){

Ralph Schoon commented Apr 09 '15, 8:29 a.m.

Is that your working version?

Chandan M B commented Apr 09 '15, 8:33 a.m.

When i save a workitem, i will get workitem id.
As soon as i got the workitem id i need to pass it to my web application to retrieve all the contents in my application and modify the WI using oslc

Ralph Schoon commented Apr 09 '15, 9:07 a.m.

Then the snippet above does not make that much sense to me.
If this is on a work item save

  1. You should use a Follow Up Action, because you want to modify the work item.
  2. You would not browse to that page, you would use REST calls under the cover, invisible to the user and perform your modification in a second save.
  3. Please note, if you try to use an advisor instead:

Chandan M B commented Apr 09 '15, 11:03 p.m.

Hi Ralph,

I will explain my scenario.

I created a new task in ALM by entering the attributes.
On click of save, task is created as well as a new task has to get created in my custom web application.

To do this, on click of save , i took the WI id and pass it to my application.
From the URL , i will pick up my id and through OSLC i query the values which i entered during the creation of task in ALM and display in my application.

User will press save so that all the values also will get save in my application also.
This will reduce human effort of entering data twice.

Suppose, if user changes somethings in my application, i will update the WI using OSLC.

This is mainly to have sync with both the tools.


Ralph Schoon commented Apr 10 '15, 3:22 a.m.

I stay with my previous statement, in your scenario don't navigate to the page in the UI, you use the http libraries available on the server, or any other feasible API to open a connection under the hood and communicate to that web application.

The code above does not seem to make that much sense as an approach to me.

Chandan M B commented Apr 24 '15, 8:21 a.m.

Hello Ralph,
Yes you are right . Its not working when i deployed in my local jazz server.
Please provide me the code snippet. How to navigate to my web application on click of save. Currently i am passing the WI id to it.

I should navigate as soon as i click save on my WI. Please help


showing 5 of 7 show 2 more comments

Be the first one to answer this question!

Register or to post your answer.