Skip to content

Commit

Permalink
add "components" and "labels" colums
Browse files Browse the repository at this point in the history
  • Loading branch information
fkusei committed Feb 8, 2021
1 parent 1fdbdd6 commit d5608d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .termira.ini.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ watching = (reporter = currentUser() OR watcher = currentUser()) AND (assignee !

[columns]
# These are the only columns currently supported:
show = Key,Status,Summary,Created,Updated,Creator,Assignee
show = Key,Status,Summary,Components,Labels,Created,Updated,Creator,Assignee

[date]
format = %%d.%%m.%%Y %%H:%%M
2 changes: 2 additions & 0 deletions termira
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,11 @@ def show_issues(screen, offset, current, issues, columns, date_format):
lines = []
for issue in issues:
formatted = {
'Components': ' '.join(sorted({i.name for i in issue.fields.components})),
'Created': fmt_date(issue.fields.created, date_format),
'Creator': issue.fields.creator.displayName,
'Key': issue.key,
'Labels': ' '.join(sorted(issue.fields.labels)),
'Status': issue.fields.status.name,
'Summary': issue.fields.summary,
'Updated': fmt_date(issue.fields.updated, date_format),
Expand Down

0 comments on commit d5608d4

Please sign in to comment.