mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-07 13:33:32 +02:00
default view template shouldn't fail when assignee is nil
The default view template was failing with this error whenever I tried to
view a jira that had no assignee:
assignee: 2015-02-16T08:31:58.564-08:00 ERROR [util.go:109] Failed to execute template: template: template:7:20: executing "template" at <.fields.assignee.nam...>: nil pointer evaluating interface {}.name
This commit is contained in:
@@ -26,7 +26,7 @@ summary: {{ .fields.summary }}
|
|||||||
project: {{ .fields.project.key }}
|
project: {{ .fields.project.key }}
|
||||||
components: {{ range .fields.components }}{{ .name }} {{end}}
|
components: {{ range .fields.components }}{{ .name }} {{end}}
|
||||||
issuetype: {{ .fields.issuetype.name }}
|
issuetype: {{ .fields.issuetype.name }}
|
||||||
assignee: {{ .fields.assignee.name }}
|
assignee: {{ if .fields.assignee }}{{ .fields.assignee }}{{end}}
|
||||||
reporter: {{ .fields.reporter.name }}
|
reporter: {{ .fields.reporter.name }}
|
||||||
watchers: {{ range .fields.customfield_10110 }}{{ .name }} {{end}}
|
watchers: {{ range .fields.customfield_10110 }}{{ .name }} {{end}}
|
||||||
blockers: {{ range .fields.issuelinks }}{{if .outwardIssue}}{{ .outwardIssue.key }}[{{.outwardIssue.fields.status.name}}]{{end}}{{end}}
|
blockers: {{ range .fields.issuelinks }}{{if .outwardIssue}}{{ .outwardIssue.key }}[{{.outwardIssue.fields.status.name}}]{{end}}{{end}}
|
||||||
|
|||||||
Reference in New Issue
Block a user