alisaifee / jira-cli

yet another jira cli
MIT License
133 stars 58 forks source link

Convenience option: --myissues #53

Open pjz opened 7 years ago

pjz commented 7 years ago

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.

AlJohri commented 7 years ago

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

alisaifee commented 7 years ago

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 commented 7 years ago

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.

AlJohri commented 7 years ago

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

alisaifee commented 7 years ago

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

radoeka commented 6 years ago

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