From f0cf9a7f97c429ce040422fc2d945174c6a03841 Mon Sep 17 00:00:00 2001 From: Parth Sharma <86726240+parth-deepsource@users.noreply.github.com> Date: Wed, 25 Oct 2023 12:24:32 +0530 Subject: [PATCH] fix: exclude subtask issue types in Jira (#69) --- provider/jira/jira.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/provider/jira/jira.go b/provider/jira/jira.go index 5e45dc0..6e54e19 100644 --- a/provider/jira/jira.go +++ b/provider/jira/jira.go @@ -129,7 +129,9 @@ func (p *jiraSimple) GetOptValues(_ context.Context, opts *domain.NotifierSecret var issueTypeValues Values for _, issueType := range project.IssueTypes { - issueTypeValues = append(issueTypeValues, Value{ID: issueType.ID, Name: issueType.Name}) + if !issueType.Subtask { + issueTypeValues = append(issueTypeValues, Value{ID: issueType.ID, Name: issueType.Name}) + } } ProjectKeyIssueTypeMap[project.Key] = ProjectKeyInfo{IssueType: issueTypeValues}