# MIGRATE RELATED
---
ticket-notify-l2:
  Inited:
    UpdateL2AssigneeEvent:
      state: WaitForNotify
      action:
        cmd: ["notify", "card", "custom", "oncall"]
        log_on_comment: true
        on_success: NotifyEvent
  WaitForNotify:
     NotifyEvent:
      state: Finished
     UpdateL2AssigneeEvent:
      state: Finished
      action:
        cmd: ["notify", "card", "custom", "oncall"]
        log_on_comment: true
        on_success: NotifyEvent
  Finished:
    UpdateL2AssigneeEvent:
      state: Finished
      action:
        cmd: ["notify", "card", "custom", "oncall"]
        log_on_comment: true

ticket-cc:
  Inited:
    UpgradeToL2Event:
      state: Created
      action:
        cmd: ["notify", "card", "ticket", "oncall"]
        on_success: NotifiedCertikEvent
  Created:
     NotifiedCertikEvent:
      state: Finished
  Finished:

ticket-notify-assignee:
  Inited:
    UpdateAssigneeEvent:
      state: WaitForNotify
      action:
        cmd: ["notify", "card", "assignee", "oncall"]
        log_on_comment: true
        on_success: NotifyEvent
  WaitForNotify:
     NotifyEvent:
      state: Finished
     UpdateAssigneeEvent:
      state: WaitForNotify
      action:
        cmd: ["notify", "card", "assignee", "oncall"]
        log_on_comment: true
        on_success: NotifyEvent
  Finished:
    UpdateAssigneeEvent:
      state: Finished
      action:
        cmd: ["notify", "card", "assignee", "oncall"]
        log_on_comment: true

guardian-jsm-ticket:
  Inited:
    CreatedEvent:
      state: Created
      action:
        cmd: ["backfill"]
        log_on_comment: true
        on_success: BackfilledEvent
  Created:
    BackfilledEvent:
      state: Backfilled
      action:
        cmd: ["guardian"]
        log_on_comment: true
        on_success: CreateAnalysisEvent
  Backfilled:
    CreateAnalysisEvent:
      state: Finished
  Finished:
