The MuleSoft Anypoint Platform enables the building, deployment, and management of APIs and integrations, facilitating seamless connectivity across applications and systems. When combined with CData Connect AI, it provides access to Jira data for visualizations, dashboards, and more. This article explains how to use CData Connect AI to create a live connection to Jira and how to connect and access live Jira data from the MuleSoft Anypoint Platform.
Prerequisites
Before configuring and using MuleSoft with CData Connect AI, you must first connect a data source to your CData Connect AI account. For more information, see the Connections section.
Additionally, you need to generate a Personal Access Token (PAT) on the Settings page. Be sure to copy it down, as it serves as your password during authentication.
About Jira Data Integration
CData simplifies access and integration of live Jira data. Our customers leverage CData connectivity to:
- Gain bi-directional access to their Jira objects like issues, projects, and workflows.
- Use SQL stored procedures to perform functional actions like changing issues status, creating custom fields, download or uploading an attachment, modifying or retrieving time tracking settings, and more.
- Authenticate securely using a variety of methods, including username and password, OAuth, personal access token, API token, Crowd or OKTA SSO, LDAP, and more.
Most users leverage CData solutions to integrate Jira data with their database or data warehouse, whether that's using CData Sync directly or relying on CData's compatibility with platforms like SSIS or Azure Data Factory. Others are looking to get analytics and reporting on live Jira data from preferred analytics tools like Tableau and Power BI.
Learn more about how customers are seamlessly connecting to their Jira data to solve business problems from our blog: Drivers in Focus: Collaboration Tools.
Getting Started
Configure Jira Connectivity for MuleSoft
Connectivity to Jira from MuleSoft is made possible through CData Connect AI. To work with Jira data from MuleSoft, we start by creating and configuring a Jira connection.
-
Log into Connect AI, click Sources, and then click Add Connection
π Adding a Connection
- Select "Jira" from the Add Connection panel
π Selecting a data source
-
Enter the necessary authentication properties to connect to Jira.
To connect to JIRA, provide the User and Password. Additionally, provide the Url; for example, https://yoursitename.atlassian.net.
π Configuring a connection (Salesforce is shown)
-
Click Save & Test
-
Navigate to the Permissions tab in the Add Jira Connection page and update the User-based permissions.
π Updating permissions
Add a Personal Access Token
When connecting to Connect AI through the REST API, the OData API, or the Virtual SQL Server, a Personal Access Token (PAT) is used to authenticate the connection to Connect AI. It is best practice to create a separate PAT for each service to maintain granularity of access.
-
Click on the Gear icon () at the top right of the Connect AI app to open the settings page.
-
On the Settings page, go to the Access Tokens section and click Create PAT.
-
Give the PAT a name and click Create.
π Creating a new PAT
-
The personal access token is only visible at creation, so be sure to copy it and store it securely for future use.
With the connection configured and a PAT generated, you are ready to connect to Jira data from Mulesoft.
Connecting to CData Connect AI
Follow these steps to establish a connection from Mulesoft to CData Connect AI through the JDBC driver:
-
Download and install the CData Connect AI JDBC driver.
-
Open the Integrations page of CData Connect AI.
-
Search for and select JDBC.
-
Download and run the setup file.
-
When the installation is complete, the JAR file can be found in the installation directory (inside the lib folder).
- Log into Mulesoft Anypoint Studio or launch the desktop application.
- Create a new Mulesoft project.
π Create a new MuleSoft project
π Add the project name
The new project appears in a project folder.
π The new project is created
- In the Mule Palette located on the right, drag an HTTP Listener to the Message Flow area.
π Drag the HTTP Listener to the Message Flow area
- Click on the HTTP Listener to configure it.
π Click on the HTTP Listener to configure it
- Click the + sign on the right of Connector configuration. The HTTP Listener config dialog appears.
- Configure the HTTP Listener, providing a Port on which to query your data, and click OK.
π Add the port number to configure the HTTP Listener
- Provide a path on which to perform the actions. The HTTP Listener is now configured.
π Provide a path to perform the actions
- In the Mule Palette on the right, type database in the search bar.
π Search for database in Mule Palette search bar
- Drag the database operation you want to perform to the Message Flow area. For this example, we choose Select.
π Drag the database operation in the Message Flow area
- Select Generic Connection from the Connection dropdown in the Database Config dialog.
π Select Generic Connection from the Connection dropdown
- Click the Configure button to configure the JDBC driver. Select Use local file from the drop-down list.
π Select Use local file from the dropdown
- Locate the CData Connect AI JAR file from the JDBC driver installation and click OK.
π Add the CData Connect AI JAR file path
- Provide the following information:
- Click Test Connection.
π Click on Test Connection
- If the connection is successful, provide the SQL Query Text in the editor. You can see the table metadata on the right side in the Output tab.
π Write the SQL Query
- In the Mule Palette, drag Transform Message to the Message Flow area.
π Drag Transform Message to the Message Flow area
- Click Transform Message to configure it. Change the Output as follows:
π Configure Transform Message
- Save your project and run it. In the console, Mulesoft starts initializing the dependencies.
π Save and Run the project
- Once you see the message, "Message source 'listener' on flow your_project_name successfully started", you can start querying your data at the endpoint you provided.
π Check for the 'Message source 'listener' on flow your_project_name successfully started' message to get started
- Query to check out the data using the Postman application (as shown below).
π Send an API request from Postman to check the Jira data
SQL Access to Jira Data from Cloud Applications
Now you have a direct connection to live Jira data from MuleSoft Anypoint Platform. You can create more connections to ensure seamless data flow, automate business processes, and manage APIs - all without replicating Jira data.
To get real-time data access to hundreds of SaaS, Big Data, and NoSQL sources (including Jira) directly from your cloud applications, explore the CData Connect AI.