In this example, we will create a two-way Trusted Applications link between a 'local' FishEye server with Application Links ((http://fisheye.example.com/ in this example) and a 'remote' JIRA server without Application Links (http://jira.example.com/ in this example). We'll add the link from the FishEye server.
In FishEye, do the following: Log in as a system administrator and go to the administration page. Click 'Application Links' in the administration menu. The 'Configure Application Links' page will appear, showing the application links that have been set up. Click 'Add Application Link' to open the add application link wizard.
1. Specifying the Remote Application
First, we need to specify which application we are linking to. Enter the URL for the JIRA server in the 'Link to another server' dialogue, as shown in the screenshot below, and click 'Next'.
Screenshot: Entering the server URL
2. Creating the Application Link
Enter an 'Application Name' and choose the 'Application Type' to be 'JIRA'. Click the 'Create' button. The application link will be created and displayed on the 'Configure Application Links' page.
Our JIRA server does not have Application Links, so we cannot automatically create a link back to our FishEye server nor set up authentication. We'll manually set these up in the next step.
Screenshot: Creating the application link
3. Configuring Authentication for the Application Link
We are going to use Trusted Applications authentication for all incoming and outgoing requests via the application link, as both servers share the same userbase. Trusted Applications authentication is recommended when both applications fully trust each other and share the same set of users (read more about configuring Trusted Applications authentication). Other authentication configurations are described in Configuring Authentication for an Application Link.
On the 'Configure Application Links' page, click the 'Configure' link next to the application link just created. The configuration dialogue for the application link will be displayed.
First, we need to configure our JIRA server to trust our FishEye server. Navigate to the 'Outgoing Authentication' tab on the configuration dialogue and click the 'Configure' button on the 'Trusted Applications' sub-tab. Click the 'Apply' button to apply Trusted Applications authentication.
We also need to configure our FishEye server to trust our JIRA server. Navigate to the 'Incoming Authentication' tab on the configuration dialogue and click the 'Configure' button on the 'Trusted Applications' sub-tab. Click the 'Apply' button to apply Trusted Applications authentication.
Screenshot: Setting up Trusted Applications authentication (click to view larger image)
4. Additional JIRA Configuration
Our JIRA server does not have Application Links, so we need to perform additional Trusted Applications configuration in JIRA before our application link will work.
Follow the instructions on adding a trusted app in the JIRA documentation: Configuring Trusted Applications. You will need to enter the following information:
- 'Base URL' — Enter the URL of your FishEye server, 'http://fisheye.example.com/'
- 'Application Name' — Enter the name for your FishEye server, 'Example FishEye'.
- 'Timeout' — '10000'
- 'IP Addresses' — Leave this blank, unless you are using a proxy server (if so, see the Trusted Applications documentation for further instructions).
- 'URL Patterns' — Enter the following URLs: /sr/jira.issueviews:searchrequest, /secure/RunPortlet, /rest, /rpc/soap
You may also want to enable issues activity in your activity stream. To do this, navigate to your Application Links and click the 'JIRA settings' link next to your application link. Tick the 'Include in 'Activity Streams' checkbox and click 'Save'.
Congratulations, you've just created an application link! |