Transcript
Page 1: Mule Integration with Atlassian JIRA

Integrate MULE ESB with JIRA

By Ramakrishna Narkedamilli

Page 2: Mule Integration with Atlassian JIRA

Overview:

MuleSoft is a popular ESB technology to integrate Different on-premise and cloud applications for data exchange. Atlassian JIRA is an issue tracking product. It provides bug tracking, issue tracking, and project management functions. JIRA provides wide range of options to control all the activities to maintain project and allows other applications to connect remotely (Via JIRA SOAP api) to create projects, issues and other activities. The JIRA Mule Connector allows developers to connect JIRA remotely to perform different actions.

Instants access to the Atlassian JIRA api enables business to create seamless integration with Atlassian JIRA with their production systems and it allows creation of different activities on fly.

Page 3: Mule Integration with Atlassian JIRA

Prerequisites:

Atlassian JIRA software installed on local server Atlassian JIRA Account with user name and password. Java version 1.7 Mule AnyPoint Studio Mule AnyPoint JIRA Connector.

Page 4: Mule Integration with Atlassian JIRA

Atlassian JIRA Installation and Account Setup:

Atlassian JIRA provides the option to install the JIRA either on cloud based or in local server. To complete the sample demo, I will explain how to install on local server.

The Software can be downloaded from here. Once downloaded, run the installer and it will install the JIRA on your local machine.

Now, you’re able to see options on start windows. Just click on the “Start JIRA Service [8080]” to start JIAR.

Page 5: Mule Integration with Atlassian JIRA

Open the URL http://localhost:8080 on your browser. Set up the account by creating user name and password.

Now, we need to enable the option to allow remote calls via JIRA api as it’s by default disabled. For this Settings(Symbol) System Confirm Admin Access General Configuration Edit Settings Accept remote API calls ON

Page 6: Mule Integration with Atlassian JIRA

Mule Anypoint JIRA Connector: JIRA is a project management tool for creating and deleting project, users, groups,

permissions, efforts and more. Mule JIRA connector enables integrating with JIRA and provides option to perform more than 40 activities.

MULE ESB Flows for JIRA Integration MULE ESB Flows for JIRA Integration

Page 7: Mule Integration with Atlassian JIRA

The above Mule application is used to create new project and issue in Atlassian JIRA using Mule Anypoint JIRA connector.

Steps to be followed for integrating ‘Atlassian JIRA’ with MuleSoft Applications:

Install the JIRA Connector in Anypoint Studio (3.5 and above) http://repository.mulesoft.org/connectors/releases/3.5

Create a new Anypoint Studio Project and Flows to create new project and issue.

To use the JIRA endpoint in the flows, first we need to create JIRA global element to specify connection details.

Configure the JIRA global element in global elements section by providing the username, password and Connection Address. Here connection Address typically in the format of

http://<Host>:<Port>//rpc/soap/jirasoapservice-v2

Page 8: Mule Integration with Atlassian JIRA

Use the HTTP Inbound endpoints to trigger the service and to create new project and issue in JIRA.

Finally create the JIRA global endpoint in both the flows by pointing to Global element and mention the required operation names and parameters.

Now at this position we are integrated with JIRA to perform actions. Below is the XML code for this project

Page 9: Mule Integration with Atlassian JIRA

Running and Testing the Application:

Right-click on the application ? Run ? Mule Application.

Open the browser and hit the url http://localhost:8082/CreateProject.

Open the JIRA, now you’re able to see new Project in case of no errors.

To create new issue (Type “Bug”), we need add issue types to newly created project as default it will not contain all the issue types. To do that, Setting (Symbol) Projects Select Project Issue Types Scheme Actions Edit Issue Types Add all Save.

Now, open the browser and hit the url http://localhost:8083/CreateIssue.

It will create new issue under newly created project in case of no errors.

Page 10: Mule Integration with Atlassian JIRA

Project and Issue creation Under JIRA

Page 11: Mule Integration with Atlassian JIRA

Benefits:

Seamless integration running in the background

Send event notifications.

Instance issue tickets creation and assign to the respective support engineers in case of any issues in production.

Bi-directional data communication between applications and Atlassian JIRA.

Avoids manual intervention.

Can manage user creation and deletion.

Page 12: Mule Integration with Atlassian JIRA

THANKS YOU By Ramakrishna Narkedamilli


Recommended