Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to show Assignee #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

francais01
Copy link

Another idea: add assignee to stories.

@@ -83,6 +83,9 @@ def get_status_color(status_field):
def create_node_text(issue_key, fields, islink=True):
summary = fields['summary']
status = fields['status']
assignee = ''
if show_assignee and 'assignee' in fields and fields['assignee']:
assignee = '<BR/><I>' + fields['assignee']['displayName'] + '</I>'
Copy link

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.

@@ -251,6 +255,7 @@ def parse_args():
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')

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.

None yet

2 participants