You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Next »

You can configure various scenarios thanks to the integration between SLA PowerBox API and Automation.

This page describes a basic example: start SLA metric when issue is assigned.

Set Automation rule

In order to set up the Automation rule for the project, proceed to Project settings → Automation → click Create rule.

  1. Choose a trigger for the rule: Issue assigned.

  2. As an action select Send web request.

          2.1. Enter Web request URL: https://slaapp.almarise.com/integration/V1/sla-custom-event/add

          2.2. Enter headers: Source-System, Jira-Host, Authorization*.

          2.3. Select HTTP method: POST.

          2.4. Fill in Web request body:

{
  "ticketId": "{{issue.id}}",
  "metricId": "65776249d33d8f51f757d826",
  "triggerName": "metricStart",
  "slaEventAction": "START"
}


   3. Click Save and select Turn it on.


*To send a web request via Automation, you have to encode the credentials "<EMAIL>:<API_TOKEN>with base64. This can be done through any online tool like Base64 encode. Once it's done, fill in the Value as: "Basic 'encoded <EMAIL>:<API_TOKEN>'".


  • No labels