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

Get default project for UI from custom vars #54

Open
jonasboettcher opened this issue Aug 19, 2020 · 0 comments
Open

Get default project for UI from custom vars #54

jonasboettcher opened this issue Aug 19, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@jonasboettcher
Copy link

We applied something like

apply Notification "jira-service-notification" to Service {
[...]
  if (service.vars.jira_project != null) {
    vars.jira_project = service.vars.jira_project
  } else if (host.vars.jira_project != null) {
    vars.jira_project = host.vars.jira_project
  } else {
    vars.jira_project = "MYPROJECT"
  }
[...]
}

to set the project value for jira notifications. It sets the jira_project from the service. If there is none, it asks the host. Otherwise it uses "MYPROJECT" as last fallback default value.

But in the UI I have to set something like

[ui]
default_project = "MYPROJECT"

in /etc/icingaweb2/modules/jira/config.ini. It sets just one default value.

Is it possible to write a setup like above to get a "three steps fallback" in the UI?

@theFeu theFeu added the enhancement New feature or request label Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants