Skip to content

Commit

Permalink
[release-0.2] 🐛 Hide Epic issue type for On Prem trackers (#452)
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Lucidi <slucidi@redhat.com>
  • Loading branch information
mansam authored Jul 24, 2023
1 parent 277109f commit 45b0e18
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tracker/jira.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import (
"time"
)

const IssueTypeEpic = "Epic"

//
// JiraConnector for the Jira Cloud API
type JiraConnector struct {
Expand Down Expand Up @@ -173,6 +175,9 @@ func (r *JiraConnector) IssueTypes(id string) (issueTypes []IssueType, err error
if i.Subtask {
continue
}
if r.tracker.Kind == JiraOnPrem && i.Name == IssueTypeEpic {
continue
}
issueType := IssueType{
ID: i.ID,
Name: i.Name,
Expand Down

0 comments on commit 45b0e18

Please sign in to comment.