# 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
```


```javascript=
→ Create API Token
→ Enter a Label for your Token (e.g. Jira-integration-gitlab) → Create
```

```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.
```

```javascript=
→ On the left side bar → Settings → Integrations → Search Jira → Select Jira
```

```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
```

```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
```

```javascript=
Adding the JMESPATH:
→ Profile → Git Integrations: User Settings → Manage Integrations → Click Gitlab → Connection Settings
```


```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.
```

#### 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)
