From ff7cc7d97eeb37b3317f465fbeed7ca8d0eaa9c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9?= Date: Tue, 16 Nov 2021 16:21:37 +0300 Subject: [PATCH] Fixed plugin failure on Issue with no priority. --- server/issue.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/issue.go b/server/issue.go index b2fed386a..e454ef10a 100644 --- a/server/issue.go +++ b/server/issue.go @@ -785,7 +785,9 @@ func getIssueFieldValue(issue *jira.Issue, key string) StringSet { case labelsField: return NewStringSet(issue.Fields.Labels...) case priorityField: - return NewStringSet(issue.Fields.Priority.ID) + if issue.Fields.Priority != nil { + return NewStringSet(issue.Fields.Priority.ID) + } case "fixversions": result := NewStringSet() for _, v := range issue.Fields.FixVersions {