Skip to content

Commit

Permalink
fix: exclude subtask issue types in Jira (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
parth-deepsource authored Oct 25, 2023
1 parent 2b47934 commit f0cf9a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion provider/jira/jira.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit f0cf9a7

Please sign in to comment.