# Jira with Gitlab Integration ###### tags: `Devops` `gitlab` `Jira` `Integration` ## Jira provides 2 types of integrations ### Jira Integration Jira development Panel Integration We are going to do Jira Integration. ## Step 1: Create and API token for Jira Atlassian Cloud ( you need an API token to integrate gitlab with Jira) ```javascript= → Sign in to Jira (You should have Write acess to Jira projects) → Profile → Manage Account → Security → Create and Manage API Token ``` ![](https://i.imgur.com/2j0qrFP.png) ![](https://i.imgur.com/FDesnlp.png) ```javascript= → Create API Token → Enter a Label for your Token (e.g. Jira-integration-gitlab) → Create ``` ![](https://i.imgur.com/tuyto0l.png) ```javascript= → Copy the API Token and Paste somewhere safely. ``` ## Step 2: Configure the Gitlab Limitation: This integration is not supported on GitLab instances under a relative URL (for example, http://example.com/gitlab). ```javascript= → Ensure you have API Token and email address of your Jira Account . → On the top bar, → Menu → Projects → Your Project. ``` ![](https://i.imgur.com/HdF95vr.png) ```javascript= → On the left side bar → Settings → Integrations → Search Jira → Select Jira ``` ![](https://i.imgur.com/FPHKuPU.png) ```javascript= → Enable Integration → Enter the web URL to the Jira Instance web interface you’re linking to the Gitlab Project → Jira API URL → Leave Empty → Username or Email → Jira Server Username or Email → API Token you have generated before and copied at Jira ``` ![](https://i.imgur.com/Q1Jbayl.png) ```javascript= → Trigger Actions → Select Both ( Commit and Merge Request) → Trigger Actions → Comment Settings → Enable Comment → Standard → Trigger Actions → Transion Jira Issues → Enable Jira Transitions → Move to done ``` ![](https://i.imgur.com/j2gZNbK.png) ```javascript= Adding the JMESPATH: → Profile → Git Integrations: User Settings → Manage Integrations → Click Gitlab → Connection Settings ``` ![](https://i.imgur.com/ACOH7V2.png) ![](https://i.imgur.com/ryK8qlQ.png) ```javascript= → Integration Settings → JMESPATH Filter Added Filters || contains (name, ‘sohail-demo') || contains (name, '*') || Note: sohail-demo Project visibility change to public (Internal) and in the filter the '*' purpose is used to show all and waiting for the impact in output. ``` ![](https://i.imgur.com/C4YCfco.png) #### Till now we are done with our current settings, waiting for Jira response agianst our settigns. However there is another feature which is Jira Issues ( That is Premium feature, we need to make sure that feature is important for full integration) ![](https://i.imgur.com/jWKgWdI.png)