---
title: "Integrate Salesforce and Jira for SLA management"
canonical: "https://support.appfire.com/space/CSFJIRA/3688857603/Integrate+Salesforce+and+Jira+for+SLA+management"
format: markdown
---
> Macro (aura-html)

## Overview

When support teams use Salesforce and engineering teams use Jira, critical deadlines can easily get lost. This guide explains how to integrate Salesforce and Jira using Connector for Salesforce & Jira and Time to SLA. The integration gives both teams access to SLA deadlines, regardless of which application they use.

## Benefits

- Both teams see critical deadlines in their own tools without switching platforms.
- Salesforce records and Jira work items sync automatically.
- You can create Jira work items directly from Salesforce.

## Before you start

Make sure you have:

- Jira administrator access on the Jira instance with Connector for Salesforce & Jira.
- Salesforce administrator access to edit record pages
- [Set up a connection to Salesforce in Jira.](https://appfire.atlassian.net/wiki/spaces/CSFJIRA/pages/1873379599)
- [Set up a connection to Jira in Salesforce](https://appfire.atlassian.net/wiki/spaces/CSFJIRA/pages/1873346949).
- [Time to SLA installed.](https://appfire.atlassian.net/wiki/spaces/TTSC/pages/35684371)
- [Time to SLA token connected](https://appfire.atlassian.net/wiki/spaces/CSFJIRA/pages/3672277145) and [integration created](https://appfire.atlassian.net/wiki/spaces/CSFJIRA/pages/3672277145)
- [SLA component added to a Salesforce record page.](https://appfire.atlassian.net/wiki/spaces/CSFJIRA/pages/3672277145)
- [Entity and field mapping configured in Connector for Salesforce and Jira ](https://appfire.atlassian.net/wiki/spaces/CSFJIRA/pages/3664152459)for **Bug ↔ Case** entity mapping (following the Bug escalation template).

## Steps

### Create SLAs in Time to SLA

For this use case, we’ll use two SLAs: **Time to First Response** and **Time to Resolution**, each with different durations depending on item priority. For instructions, see [Define SLAs](https://appfire.atlassian.net/wiki/spaces/TTSC/pages/35651691). 

#### Time to First Response

| Priority | Target |
| --- | --- |
| P1 - Critical | 30 min |
| P2 - High | 2 hours |
| P3 - Low | 6 hours |

![SLA Time to first response](media://e6208ebe-69c1-4338-ad6e-735fd783a8c0)

#### Time to Resolution

| Priority | Target |
| --- | --- |
| P1 - Critical | 6 hours |
| P2 - High | 16 hours |
| P3 - Low | 72 hours |

![SLA Time to Resolution](media://48b98983-8660-4e17-9c94-35de1c8a338a)

Both SLAs start when the work item is created, pause while the status is **Waiting for customer**, and stop when you add a public comment (First Response) or set the resolution (Resolution). 

### Escalate a case and see the SLAs

1. In Salesforce, create a new case:
  - **Subject:** Mobile app crashes when uploading profile photo
  - **Priority:** High
  - **Description:** The iOS app closes unexpectedly when users select a photo larger than 5 MB from their gallery. The issue started after the latest app update.
2. Save the case.
3. On the case record, locate the **Jira Issues** panel and click **Associate/Create**.
4. Click **Create Jira Issue**.
5. Select your mapped Jira space and **Bug** as the issue type.   
If you cannot select the Bug issue type, make sure your administrator has mapped the Case object type with Bug in Connector for Salesforce  & Jira. For instructions, see [Configure entity and field mappings from templates](https://appfire.atlassian.net/wiki/spaces/CSFJIRA/pages/3664152459).
6. For **Association Configuration**, enable **Auto pull** and **Auto push** to ensure updates sync across both platforms.
7. Click **Create**.
  
8. Refresh the page to allow synchronization to create a new bug and pull SLA data from Jira.   
The **Jira Issue** panel displays the newly created Jira bug, and the **Time to SLA for Jira** panel shows both **Time to first response** and **Time to resolution **SLAs, already ticking down against the priority-based targets set.

![Jira Issue panel and Time to SLA for Jira panel](media://078b1a1c-3397-4a2b-988f-84bfccb02e53)

You can also go to Jira to see the new work item created. All updates will sync, and both teams can easily track the time remaining. 

### Related resources

- <u>[Configure mappings with Connector for Salesforce and Jira Documentation](https://appfire.atlassian.net/wiki/spaces/CSFJIRA/pages/1854180614)</u>
- <u>[Time to SLA Cloud user guide](https://appfire.atlassian.net/wiki/spaces/TTSC/pages/1678575285)</u>