This website uses cookies to ensure you get the best experience on our website.

Skip to content
LOGO
  • Company

    About IGNEK

    Learn about our story and our mission.

    Careers

    We're hiring!

    We always looking for talented peoples. Join our team!

    Blogs

    The latest industry news, updates and info.

    Case Studies

    Take a closer look at the projects we've delivered

    Webinar

    Watch our latest organized webinar

    Get in touch with our HR team

    • hr@ignek.com
    • +91 93284 95160
    • Ahmedabad, Gujarat, India – 382470
  • Services

    Enterprise Portal Development

    Custom Enterprise Portal Development for flawless Solutions

    Dedicated Development Team

    Expand Teams, Optimize Development with Our Expertise

    Back-end Development

    Empowering your digital presence with robust backend development expertise

    Front-end Development

    Crafting engaging user experiences through expert frontend development

    Digital Transformation

    Embrace digital transformation by modernizing process

    SaaS Development

    Transform your business with SaaS Innovative Solutions

    Technologies

    Liferay Services

    Development & Customization

    Theme

    Upgradation

    Migration

    Proof of Concept

    Performance Tunning

    Architecture

    Support & Maintenance

    E-commerce

    Expert Advice

    React Services

    Enterprise Development

    Custom Application

    Single Page Application

    Architecture

    API Integration

    Migration

    Consulting

    Maintenance & Support

    Spring Boot Services

    Web Service

    MVC Web Development

    API Integration

    Security

    Migration

    Microservices

    Support & Maintenance

    AEM Services

    Consulting Service

    Site Development

    Migration & Upgradation

    Integration

    Maintenance & Support

    Custom Solutions

    Content Management

    Team Augementation

  • Solution

    Ready for digital excellence

    In our rapidly evolving world, businesses are always on the lookout for fresh ways to improve their operations and connect with their audiences.

    Contact US

    Solutions

    SaaS : Software As A Service

    Transforming industries through cutting edge SaaS solutions.

    Customer Portal : Boost Business Productivity

    Streamline operations and enhance productivity with our Customer Portal solution.

    Liferay Based Intranet Portal

    Internal portal for company communication, collaboration and resources

    Integration

    Matomo Integration with Liferay

    Integrate Matomo to enable user interactions seamlessly.

    Microsoft Teams integration with Liferay

    Integrate to enable seamless collaboration, messaging within your portal.

    Jira Integration With Liferay

    Optimizes business operations by integrating with Jira.

  • Hire Us

    Liferay

    Get expert Liferay developers for seamless portal solutions.

    React JS

    Get expert ReactJS developers for dynamic web solutions.

    Web Developer

    Get custom web solutions from IGNEK's expert developers.

    Spring Boot

    Get top-notch Spring Boot developers for your project success!

    Healthcare

    Get top Healthcare Developers for cutting-edge medical software.

    MERN Stack

    Get expert MERN developers from IGNEK for custom, innovative project solutions.

    Why Hire Developers From IGNEK ?

    • Certified Developer
    • Transparent Communication
    • Flexible Hiring Modals
    • Fully Signed NDA
    • Cost Effective
    • Easy Exit Policy

    Get in touch with our Sales team

    • sales@ignek.com
    • +91 6351576580
    • info@ignek.com
    • Ahmedabad, Gujarat, India – 382470
SCHEDULE CALL
  • COMPANY
    • About
    • Case Studies
    • Blogs
    • Career
    • Webinar
  • SERVICES
    • Enterprise Portal Development
    • Dedicated Development Team
    • Back-end Development
    • Front-end Development
    • Digital Transformation
    • SaaS Development
  • SOLUTION
    • Customer Portal:  Boost Business Productivity
    • SaaS : Software as a Service
    • Liferay Based Employee Intranet Portal
  • TECHNOLOGY
    • Liferay Services
      • Liferay Development and Customization
      • Liferay Theme Development Service
      • Liferay DXP 7.4 Upgrade
      • Liferay Migration
      • Liferay Proof Of Concept
      • Liferay Performance Tuning
      • Liferay Architecture Design Service
      • Liferay Support And Maintenance Service
      • Liferay Ecommerce Development
      • Liferay Expert Advice
    • ReactJS Services
      • ReactJS Enterprise Application Development
      • ReactJS Custom Application Development
      • ReactJS Single Page Application Development (SPA)
      • ReactJS Applications Architecture
      • ReactJS API Integration
      • ReactJS Migration
      • ReactJS Consulting
      • ReactJS Maintenance and Support
    • Spring Boot Services
      • Spring Boot Web Development Service
      • Spring MVC Web Development
      • Spring Boot API Integration Service
      • Spring Boot Security
      • Spring Boot Migration Service
      • Spring Boot Microservices
      • Spring Boot Support & Maintenance Service
    • AEM Development Services
      • AEM Consulting Services
      • AEM Site Development
      • AEM Migration & Upgradation
      • AEM Integration Services
      • AEM Maintenance & Support
      • AEM Content Management
      • Custom AEM Solutions
      • AEM Team Augmentation
  • INTEGRATION
  • HIRE US
    • Hire Liferay Developer
    • Hire ReactJS Developer
    • Hire Spring Boot Developer
    • Hire Healthcare Developer
    • Hire Web Developer
    • Hire MERN Stack Developer
  • CONTACT US
  • Company

    About IGNEK

    Careers

    We're hiring!

    Blogs

    Case Studies

    Webinar

    Get in touch with our HR team

    • hr@ignek.com
    • +91 93284 95160
    • Ahmedabad, Gujarat, India – 382470
  • Services

    Enterprise Portal Development

    Dedicated Development Team

    Back-end Development

    Front-end Development

    Digital Transformation

    SaaS Development

    Technologies

    Liferay Liferay Services
    • Development & Customization
    • Theme
    • Upgradation
    • Migration
    • Proof of Concept
    • Performance Tuning
    • Architecture
    • Support & Maintenance
    • E-commerce
    • Expert Advice
    React React Services
    • Enterprise Development
    • Custom Application
    • Single Page Application
    • Architecture
    • API Integration
    • Migration
    • Consulting
    • Maintenance & Support
    Spring Boot Spring Boot Services
    • Web Service
    • MVC Web Development
    • API Integration
    • Security
    • Migration
    • Microservices
    • Support & Maintenance
    AEM AEM Services
    • Consulting Service
    • Site Development
    • Migration & Upgradation
    • Integration
    • Maintenance & Support
    • Custom Solutions
    • Content Management
    • Team Augmentation
  • Solution

    Ready for digital excellence

    In our rapidly evolving world, businesses are always on the lookout for fresh ways to improve their operations and connect with their audiences.

    Contact US

    Solutions

    SaaS : Software As A Service

    Customer Portal : Boost Business Productivity

    Liferay Based Intranet Portal

    Integration

    Matomo Integration with Liferay

    Microsoft Teams integration with Liferay

    Jira Integration With Liferay

  • Hire Us

    Liferay

    React JS

    Web Developer

    Spring Boot

    Healthcare

    MERN Stack

    Why Hire Developers From IGNEK ?

    • Certified Developer
    • Transparent Communication
    • Flexible Hiring Modals
    • Fully Signed NDA
    • Cost Effective
    • Easy Exit Policy

    Get in touch with our Sales team

    • sales@ignek.com
    • +91 6351576580
    • IGNEK
    • Ahmedabad, Gujarat, India – 382470
  • SCHEDULE CALL

Jira Integration With Liferay

  • Liferay
  • July 17, 2024

Share On :

Introduction: 

Atlassian develops Jira, a project management tool used for Bug tracking and agile project management.

Benefits of Jira integration with Liferay :
  1. Reducing Multiple Credential Management: The user can access and use Jira issues with a single sign-in with Liferay. It will save users lots of time. 

User will get a unified dashboard for creating and managing their project tasks using the Liferay portal.

  1. Increase Productivity: Liferay users can easily manage their Jira account with a single sign-on (SSO). We can also automate Jira and Liferay’s workflows. 

Task management of Jira project and issues are going easier by using Liferay’s document management and collaboration tool. 

  1. Project Tracking: By creating integrated reports that combine data from Jira and Liferay, we get a comprehensive view of project status and team performance in a single document. This helps to understand overall progress and effectiveness even without needing to consult with multiple sources.

We can keep track of problems or tasks and see their updates or changes without interruptions. Everything is done smoothly and efficiently in one place.

  1. Improve Communication: If the Jira notification will integrate with Liferay then it will alert for Jira issues which keeps team members updated all the time.
  2. Enhance Security: By managing access to Jira issues through Liferay’s robust permission system, We can ensure that only authorized users can view and do the updation part through our Liferay portal.
Prerequisites: 
  1. Liferay
  2. Atlassian account
Steps to Integrate Jira with Liferay: 
  1. Create a Jira access token.
  2. Find the appropriate Jira API.
  3. Create an MVC Portlet.
  4. Integrate the Jira API in portlet.
  5. Create a table in JSP to view Jira content.
  6. Deploy and test the module.

STEP 1: Create a Jira access token.

Go to the Atlassian account settings

Open Atlassian Account

And then go to the security tab

Go To Security Tab

At the security tab just under the “Two-Step-Verification” Api tokens section is there.
Click on “Create and Manage API tokens”.

Security Tab

Now Create a new API token which is used as a security key to access Jira API.

If we have not created any token then our interface something looks like this:

Create API Token

Click on Create API token and then enter the token label.

Name Of Token
Copy Generated Token

Copy the created token and this will be used all the time when we want to do any activity with Jira API.

Token Generated

STEP 2: Find the appropriate Jira API.

For our support and ease, Atlassian is providing the Jira API which will help us to access and manage their data or project using their Rest APIs.

With the help of Jira APIs, we have done a lot of operations that we have done to interact with Jira programmatically.
Let’s discuss some of their API features.

  1. Issues Operations : 
    • Create the issues
    • Read the issues
    • Modify the existing issues.
  1. Project Operations:
    • Create a new project.
    • Fetch the project details.
    • Update the project setting
    • Delete or remove the project.
  1. User Operations:
    • Create a new user.
    • Fetch the user details.
    • Update the user information.
    • Delete the users.
  1. Workflow Operations:
    • Fetch the workflow details.
    • Update or modify the workflows.

For further information take a reference from here

https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/

STEP 3: Create an MVC Portlet.

We will integrate the Jira Rest API with the help of the MVC rest builder in Liferay.

For that, we have to create a fresh MVC Portlet in our Liferay workspace. Then we will integrate Jira API within a portlet with the help of 

  1. Create a fresh MVC portlet: Create a fresh MVC portlet or also integrate this within a working set.

 

Portlet Hierarchy

We are starting with a new MVC portlet and have created the JiraIntegrationWithLiferayPortlet class.

Now in this portlet class, we are going to implement the following things:

  1. Add Credential: Provide the API, Atlassian username, and Atlassian token (as a password) within a view method.
  2. Call the Jira API: We will use the GET method to call the Jira API, which will return the output in a JSON string format.
  3. API Response Process: Fetch the output, convert it into a JSON object, and then pass this data into a JSP file to display the API response.

STEP 4:  Integrate the Jira API in Portlet.

Here is the revised text for clarity and correctness:

The steps we discussed in Step 3 are now being implemented in the MVC Portlet class.

				
					Adding credentials and managing output response: 

@Override
public void doView(RenderRequest renderRequest, RenderResponse renderResponse) throws IOException, PortletException {
	String getApiUrl = "https://ignek-team.atlassian.net/rest/api/3/issue/createmeta";
	String username = "Atlassian username";
	String password = "atlassian API token";
	String jsonResponse = callJiraApi(getApiUrl, username, password);
	List<String> issueTypes = new ArrayList<>();
	String projectName = "";

	try {
		JSONObject jsonObject = JSONFactoryUtil.createJSONObject(jsonResponse);

		JSONArray projects = jsonObject.getJSONArray("projects");

		if (projects.length() > 0) {
			JSONObject project = projects.getJSONObject(0);
			projectName = project.getString("name");

			JSONArray issueTypesArray = project.getJSONArray("issuetypes");
			for (int i = 0; i < issueTypesArray.length(); i++) {
				JSONObject issueType = issueTypesArray.getJSONObject(i);
				issueTypes.add(issueType.getString("name"));
			}
		}
	} catch (Exception e) {
		_log.error("Exception occurred while parsing Jira API response", e);
	}

	renderRequest.setAttribute("projectName", projectName);
	renderRequest.setAttribute("issueTypes", issueTypes);


	renderRequest.setAttribute("jsonResponse", jsonResponse);
	super.doView(renderRequest, renderResponse);
}




				
			
				
					Calling Jira API and returning output in Json String:

private String callJiraApi(String apiUrl, String username, String password) {
	StringBuilder response = new StringBuilder();
	try {
		URL url = new URL(apiUrl);
		HttpURLConnection conn = (HttpURLConnection) url.openConnection();
		conn.setRequestMethod("GET");

		String auth = username + ":" + password;
		String encodedAuth = Base64.getEncoder().encodeToString(auth.getBytes());
		String authHeaderValue = "Basic " + encodedAuth;
		conn.setRequestProperty("Authorization", authHeaderValue);

		int responseCode = conn.getResponseCode();
		if (responseCode == HttpURLConnection.HTTP_OK) {
			try (java.io.BufferedReader in = new java.io.BufferedReader(
					new java.io.InputStreamReader(conn.getInputStream()))) {
				String inputLine;
				while ((inputLine = in.readLine()) != null) {
					response.append(inputLine);
				}
			}
		} else {
			_log.error("GET request not worked, Response Code: " + responseCode);
		}
	} catch (IOException e) {
		_log.error("Exception occurred while calling Jira API", e);
	}

	return response.toString();
}




				
			

STEP 5: Create a table in JSP to view Jira content.

The data we retrieve from the portlet is displayed in a table. 

In this table, we are showing just the project name and the issue types.

Rendering output data in JSP file:

				
					Rendering output data in JSP file:

<%@ include file="/init.jsp" %>
<%@ page import="com.liferay.portal.kernel.util.ParamUtil" %>
<%@ taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %>
<%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
<%@ page import="java.util.List" %>


<liferay-theme:defineObjects />

<div class="container mt-5">
    <h1 class="mb-4">Jira Integration Portlet</h1>

    <div>
        <h2>Project and Issue Types</h2>
        <table class="table table-bordered table-hover">
            <thead class="thead-dark">
                <tr>
                    <th scope="col">Project Name</th>
                    <th scope="col">Issue Types</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td><%= renderRequest.getAttribute("projectName") %></td>
                    <td>
                        <ul class="list-unstyled">
                            <%
                                List<String> issueTypes = (List<String>) renderRequest.getAttribute("issueTypes");
                                for (String issueType : issueTypes) {
                            %>
                                <li><%= issueType %></li>
                            <%
                                }
                            %>
                        </ul>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>




				
			

STEP 6: Deploy and test the module: 

Deploy the created module and add it to a Liferay page from the Widgets -> Sample section

Select Your Portlet
Drop The Portlet On Page
Conclusion:

Integrating Jira with Liferay offers significant advantages in project management and task handling. By leveraging features such as single sign-on (SSO), unified dashboards, and automated workflows, users can enhance productivity, streamline task management, and maintain better project oversight. This integration also improves communication through real-time notifications and bolsters security by managing access through Liferay’s permission system. By following the outlined steps—creating a Jira access token, using Jira APIs, developing an MVC Portlet, and deploying the module—teams can achieve a more cohesive and efficient project management experience.

Explore Our Services

Discover how we can help your business thrive, whether you’re running a small startup, an SME, or a large enterprise. We’re here to understand your unique needs and goals, offering the expertise and resources to support your journey to success.

Stay informed about our Liferay services and updates by subscribing to our newsletter—just fill in the details below to subscribe.

Loading
Loading...

Related Blogs

July 27, 2022
Liferay Integration with Google Drive
Liferay Integration with Google Drive
July 11, 2023
Microsoft Teams integration with Liferay Cover Image
Microsoft Teams integration with Liferay
July 10, 2023
Google Meet integration with Liferay Cover Image
Google Meet integration with Liferay
Loading...

Featured Projects Portfolios

October 3, 2023
Simplify Approvals and Goals With Agenda & Meeting SaaS Platform
Simplify Approvals and Goals With Agenda & Meeting SaaS Platform

Digital Solutions for Your Business with IGNEK

4.9

5.0

5.0

5.0

LOGO

Making the world a better place through constructing elegant hierarchies

COMPANY

  • About
  • Career
  • Case Study
  • Blogs

SERVICES

  • Enterprise Portal Development
  • Dedicated Development Team
  • Back-end Development
  • Front-end Development
  • Digital Transformation
  • SaaS Development

HIRE US

  • Liferay
  • Spring Boot
  • ReactJS
  • Healthcare
  • MERN Stack
  • AEM

CONTACT

  • info@ignek.com
  • info@ignek.com
SALES
  • sales@ignek.com
  • (+91) 635 157 6580
CAREER
  • hr@ignek.com
  • (+91) 932 849 5160
  • E 910-912, Ganesh Glory 11, Jagatpur Road, SG Highway, Ahmedabad, Gujarat - 382470

© 2018-2025 IGNEK, Inc. All rights reserved

Linkedin Facebook X-twitter Instagram