---
title: "Time to SLA Integration"
canonical: "https://support.appfire.com/space/EIFJC/582814444/Time%20to%20SLA%20Integration"
format: markdown
---
> Macro (aura-html)

#### **Step 2: Create a New Credential in EIS**

4. Open Easy Integrations, and navigate to the **Credential** tab.
5. Create a new credential.
6. Choose **Bearer** as the Authorization Type.
7. Paste the copied API token.

#### **Step 3: Create a Listener in EIS**

8. Navigate to the EIS - **Listener** tab.
9. Go to the **Events** section.
10. Add the **Comment Created** event to your event selection.
11. Move to the **Actions** section.

#### **Step 4: Configure actions**

12. Create a **Call Rest API** action.
  - Add the "issueId" property to the action parameters.
  - Put the "get issue SLA" URL into the URL section.
  - Choose the **GET** method.
  - Use the previously created credential.
  - Add the action.
13. Create a **Send E-Mail** action.
  - Write a script to determine the email subject.
  - Write a script to return closing SLAs.
  - Assign the issue's assignee as the recipient.
  - Add the action.
14. Complete the listener creation process.

#### **Step 5: Use the Integration**

15. Got to an issue within the system.
16. Add a comment to initiate the integration.

#### **Script Console:**

![image](media://5fe7fdaf-a847-4db6-bf74-c54b556ac2ed)

![image](media://6d9c0929-8ea1-40c2-b5ab-f1b603679797)

![image](media://fdb16957-a10e-4048-b7ac-ee839aa9a586)