Cross-Provider Workflow

Opsgenie Incident to GitHub Issue to Microsoft Teams

Version 1.0.0

Create an Opsgenie incident, open a GitHub issue, then announce in Teams.

1 workflow 3 source APIs 3 providers
View Spec View on GitHub ArazzoWorkflowsCross-Provider

Providers Orchestrated

opsgenie github microsoft-teams

Workflows

opsgenie-incident-to-issue-to-teams
Create an Opsgenie incident, open a GitHub issue, and announce in Teams.
Creates an Opsgenie incident, opens a GitHub issue to track remediation, and posts a Microsoft Teams message announcing the incident.
3 steps inputs: channelId, incidentDescription, incidentMessage, owner, repo, teamId outputs: issueNumber, issueUrl, messageId, requestId
1
create-incident
$sourceDescriptions.opsgenieIncident.createIncident
Create a new incident in Opsgenie.
2
open-issue
$sourceDescriptions.githubIssues.createAnIssue
Open a GitHub issue to track the incident.
3
announce-teams
$sourceDescriptions.microsoftTeams.sendChannelMessage
Announce the incident in a Microsoft Teams channel.

Source API Descriptions

Arazzo Workflow Specification

dev-opsgenie-incident-to-github-issue-teams.yml Raw ↑
arazzo: 1.0.1
info:
  title: Opsgenie Incident to GitHub Issue to Microsoft Teams
  summary: Create an Opsgenie incident, open a GitHub issue, then announce in Teams.
  description: >-
    An incident-response workflow that creates an Opsgenie incident to drive the
    response process, opens a GitHub issue to track remediation, and announces
    the incident in a Microsoft Teams channel. Demonstrates chaining an
    incident-management provider, a source-control provider, and a collaboration
    provider in a single Arazzo workflow.
  version: 1.0.0
sourceDescriptions:
  - name: opsgenieIncident
    url: https://raw.githubusercontent.com/api-evangelist/opsgenie/refs/heads/main/openapi/opsgenie-incident-openapi.yml
    type: openapi
  - name: githubIssues
    url: https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/openapi/github-repo-issues-api-openapi.yml
    type: openapi
  - name: microsoftTeams
    url: https://raw.githubusercontent.com/api-evangelist/microsoft-teams/refs/heads/main/openapi/microsoft-teams-graph-api.yaml
    type: openapi
workflows:
  - workflowId: opsgenie-incident-to-issue-to-teams
    summary: Create an Opsgenie incident, open a GitHub issue, and announce in Teams.
    description: >-
      Creates an Opsgenie incident, opens a GitHub issue to track remediation,
      and posts a Microsoft Teams message announcing the incident.
    inputs:
      type: object
      properties:
        incidentMessage:
          type: string
        incidentDescription:
          type: string
        owner:
          type: string
        repo:
          type: string
        teamId:
          type: string
        channelId:
          type: string
    steps:
      - stepId: create-incident
        description: Create a new incident in Opsgenie.
        operationId: $sourceDescriptions.opsgenieIncident.createIncident
        requestBody:
          contentType: application/json
          payload:
            message: $inputs.incidentMessage
            description: $inputs.incidentDescription
            priority: P1
        successCriteria:
          - condition: $statusCode == 202
        outputs:
          requestId: $response.body#/requestId
      - stepId: open-issue
        description: Open a GitHub issue to track the incident.
        operationId: $sourceDescriptions.githubIssues.createAnIssue
        requestBody:
          contentType: application/json
          payload:
            title: $inputs.incidentMessage
            body: $inputs.incidentDescription
            labels:
              - incident
              - opsgenie
        successCriteria:
          - condition: $statusCode == 201
        outputs:
          issueNumber: $response.body#/number
          issueUrl: $response.body#/html_url
      - stepId: announce-teams
        description: Announce the incident in a Microsoft Teams channel.
        operationId: $sourceDescriptions.microsoftTeams.sendChannelMessage
        requestBody:
          contentType: application/json
          payload:
            body:
              contentType: html
              content: $steps.open-issue.outputs.issueUrl
        successCriteria:
          - condition: $statusCode == 201
        outputs:
          messageId: $response.body#/id
    outputs:
      requestId: $steps.create-incident.outputs.requestId
      issueNumber: $steps.open-issue.outputs.issueNumber
      issueUrl: $steps.open-issue.outputs.issueUrl
      messageId: $steps.announce-teams.outputs.messageId