Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

Incident State #4

Open
caseywatts opened this issue Nov 19, 2014 · 1 comment
Open

Incident State #4

caseywatts opened this issue Nov 19, 2014 · 1 comment

Comments

@caseywatts
Copy link
Contributor

If/when we want to determine incident state in this gem, Micah did some work on that we can use!

module IncidentState
  UNASSIGNED="1"
  ASSIGNED="2"
  IN_PROGRESS="3"
  ON_HOLD="4"
  RESOLVED="6"
  CLOSED="7"
end

def isClosed(inc)
    return inc.incident_state == IncidentState::CLOSED
end

https://gist.github.com/mrosales/4d8108a4a1305e5ef3c9

@mrosales
Copy link

mrosales commented Dec 4, 2014

@caseywatts

Turns out we actually cannot use this directly in the gem. State numbers are dependent on the installation and the labels are not static either, so it would have to be an internal class extension, or there would have to be a function to configure the states.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants