Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions internal/cmd/sprint/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ func singleSprintView(sprintQuery *query.Sprint, flags query.FlagParser, boardID
return nil, err
}
if sprintQuery.Params().ShowAllIssues {
q.Params().JQL = "project IS NOT EMPTY"
if q.Params().JQL != "" {
q.Params().JQL = "project IS NOT EMPTY AND " + q.Params().JQL
} else {
q.Params().JQL = "project IS NOT EMPTY"
}
}
resp, err := client.SprintIssues(sprintID, q.Get(), q.Params().From, q.Params().Limit)
if err != nil {
Expand Down Expand Up @@ -271,7 +275,11 @@ func getIssueQuery(project string, flags query.FlagParser, showAll bool) (string
return "", err
}
if showAll {
q.Params().JQL = "project IS NOT EMPTY"
if q.Params().JQL != "" {
q.Params().JQL = "project IS NOT EMPTY AND " + q.Params().JQL
} else {
q.Params().JQL = "project IS NOT EMPTY"
}
}
return q.Get(), nil
}
Expand Down
Loading