Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doTransition gives inaccurate log message on failure #175

Closed
nlgotz opened this issue Sep 14, 2023 · 0 comments · Fixed by #176
Closed

doTransition gives inaccurate log message on failure #175

nlgotz opened this issue Sep 14, 2023 · 0 comments · Fixed by #176

Comments

@nlgotz
Copy link
Contributor

nlgotz commented Sep 14, 2023

When trying to auto-resolve an alert, I was getting the message

Jira state \"Reopen\" does not exist or no transition possible for <ISSUE>

The following was my config:

---
defaults:
  api_url: http://jira:8080
  user: jiralert
  password: 'JIRAlert'
  issue_type: Incident
  priority: Highest
  summary: '{{ template "jira.summary" . }}'
  description: '{{ template "jira.description" . }}'
  reopen_state: Reopen
  wont_fix_resolution: ""
  reopen_duration: 1h
receivers:
  - name: 'jira'
    project: SERVICE
    auto_resolve:
        state: 'DONE'

template: jiralert.tmpl

It looks like the error returned is using the wrong variable r.conf.ReopenState instead of transitionState as used throughout the rest of the function

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

Successfully merging a pull request may close this issue.

1 participant