Skip to content

Add ability to show Assignee#52

Open
francais01 wants to merge 1 commit into
pawelrychlik:masterfrom
francais01:add-assignee
Open

Add ability to show Assignee#52
francais01 wants to merge 1 commit into
pawelrychlik:masterfrom
francais01:add-assignee

Conversation

@francais01
Copy link
Copy Markdown

Another idea: add assignee to stories.

Comment thread jira-dependency-graph.py
status = fields['status']
assignee = ''
if show_assignee and 'assignee' in fields and fields['assignee']:
assignee = '<BR/><I>' + fields['assignee']['displayName'] + '</I>'
Copy link
Copy Markdown

@Regenhardt Regenhardt Jun 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since these are not html nodes, this needs to use '\n' as new line character. Also the <I> isn't evaluated, not sure if this is possible to do without html nodes. You could of course change the whole thing to use html nodes instead.

Comment thread jira-dependency-graph.py
parser.add_argument('-t', '--ignore-subtasks', action='store_true', default=False, help='Don''t include sub-tasks issues')
parser.add_argument('-T', '--dont-traverse', dest='traverse', action='store_false', default=True, help='Do not traverse to other projects')
parser.add_argument('-w', '--word-wrap', dest='word_wrap', default=False, action='store_true', help='Word wrap issue summaries instead of truncating them')
parser.add_argument('-b', '--show-assignee', dest='show_assignee', default=False, action='store_true', help='Show assignee in issues')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think '-a' would be more intuitive as short form for assignee, unless that one is used somewhere else? Haven't looked at other forks/branches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants