jira-cli icon indicating copy to clipboard operation
jira-cli copied to clipboard

Convenience option: --myissues

Open pjz opened this issue 6 years ago • 6 comments

How about making jira-cli view --myissues work ? It'd be a shortcut for:

jira-cli view --search-jql='assignee = currentUser() AND resolution = Unresolved order by updated DESC'

Jira itself has this essentially built-in.

pjz avatar Jul 10 '17 14:07 pjz

This would be great. I would even add --oneline to this command.

AlJohri avatar Jul 26 '17 18:07 AlJohri

I've considered adding an option to add custom aliases in the config file. Something along the lines of:

[alias]
myissues = view --search-jql='assignee = currentUser() AND resolution = Unresolved order by updated DESC'

And then just use it as jira-cli myissues

What do you guys think?

alisaifee avatar Jul 28 '17 01:07 alisaifee

Could you guys look at the linked PR. I'll add documentation for the relevant functionality but basically that will allow for any custom aliases to be defined in the config.

alisaifee avatar Jul 28 '17 05:07 alisaifee

looks cool. would the aliases be part of ~/.jira-cli/config.cfg ?

AlJohri avatar Jul 28 '17 14:07 AlJohri

That is correct - I've added some documentation around configuring the aliases.

alisaifee avatar Jul 30 '17 07:07 alisaifee

seems to work in version 2.2. ticket can be closed, isn't it?

radoeka avatar Oct 06 '18 08:10 radoeka