This commit is contained in:
MasterofJOKers 2022-09-21 22:59:29 +02:00
parent e7e286fbf3
commit 0ce3932e9c
1 changed files with 4 additions and 2 deletions

View File

@ -422,10 +422,12 @@ def show(client, issue):
print(f" parent: {parent.key} on {parent.fields.status} as {parent.fields.issuetype}")
summary = indent('\n'.join(wrap(parent.fields.summary, width=72)), prefix=' ' * 4)
print(f"{summary}")
# TODO handle customfields in a good manner, e.g. let the user enable
# showing them by a custom name or their own. use cache for that.
print(indent(dedent(f"""\
created: {issue.fields.created}
components: {', '.join(issue.fields.components)}
flagged: {getattr(issue.fields, 'flagged', False)}
components: {', '.join(c.name for c in issue.fields.components)}
flagged: {bool(getattr(issue.fields, 'customfield_13216', False))}
labels: {', '.join(issue.fields.labels)}
priority: {issue.fields.priority}
reporter: {issue.fields.reporter}"""),