diff --git a/internal/view/fields.go b/internal/view/fields.go index 6d75797b..48ea53db 100644 --- a/internal/view/fields.go +++ b/internal/view/fields.go @@ -18,4 +18,5 @@ const ( fieldEndDate = "END" fieldCompleteDate = "COMPLETE" fieldLabels = "LABELS" + fieldParent = "PARENT" ) diff --git a/internal/view/helper.go b/internal/view/helper.go index 85bf743d..173be0b6 100644 --- a/internal/view/helper.go +++ b/internal/view/helper.go @@ -71,6 +71,7 @@ func ValidIssueColumns() []string { fieldCreated, fieldUpdated, fieldLabels, + fieldParent, } } diff --git a/internal/view/issues.go b/internal/view/issues.go index c4450d40..3612e8e4 100644 --- a/internal/view/issues.go +++ b/internal/view/issues.go @@ -202,6 +202,12 @@ func (l *IssueList) assignColumns(columns []string, issue *jira.Issue) []string bucket = append(bucket, prepareTitle(issue.Fields.Summary)) case fieldStatus: bucket = append(bucket, issue.Fields.Status.Name) + case fieldParent: + if issue.Fields.Parent != nil { + bucket = append(bucket, issue.Fields.Parent.Key) + } else { + bucket = append(bucket, "No parent") + } case fieldAssignee: bucket = append(bucket, issue.Fields.Assignee.Name) case fieldReporter: