We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I´m currently trying to use title in the template but this fails with:
title
template: jiralert.tmpl:3:51: executing "jira.component" at <.GroupLabels.component>: wrong type for value; expected language.Tag; got string"
jiralert.tmpl
{{ define "jira.component" }}{{- .GroupLabels.component | title }}{{ end }}
jiralert.yml
template: jiralert.tmpl defaults: api_url: https://xxx.atlassian.net description: "test" issue_type: Alert password: "" reopen_duration: 1h reopen_state: Reopening summary: "test" user: "" wont_fix_resolution: Won't Do receivers: - name: 'jiralert-critical' project: 'OPS' add_group_labels: false priority: High fields: # Components components: - name: '{{ template "jira.component" . }}'
Am i missing something - looking at this line of code this should work, shouldn´t it?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I´m currently trying to use
title
in the template but this fails with:template: jiralert.tmpl:3:51: executing "jira.component" at <.GroupLabels.component>: wrong type for value; expected language.Tag; got string"
jiralert.tmpl
jiralert.yml
Am i missing something - looking at this line of code this should work, shouldn´t it?
The text was updated successfully, but these errors were encountered: