Skip to content

Commit

Permalink
jira: add tempo command (ohmyzsh#8928)
Browse files Browse the repository at this point in the history
  • Loading branch information
shvimas authored and shlomif committed May 26, 2020
1 parent 7d84e26 commit f08e50f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/jira/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jira # performs the default action
jira new # opens a new issue
jira dashboard # opens your JIRA dashboard
jira tempo # opens your JIRA Tempo
jira reported [username] # queries for issues reported by a user
jira assigned [username] # queries for issues assigned to a user
jira myissues # queries for you own issues
Expand Down
1 change: 1 addition & 0 deletions plugins/jira/_jira
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ local -a _1st_arguments
_1st_arguments=(
'new:create a new issue'
'dashboard:open the dashboard'
'tempo:open the tempo'
'reported:search for issues reported by a user'
'assigned:search for issues assigned to a user'
'branch:open the issue named after the git branch of the current directory'
Expand Down
3 changes: 3 additions & 0 deletions plugins/jira/jira.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ function jira() {
else
open_command "${jira_url}/secure/Dashboard.jspa"
fi
elif [[ "$action" == "tempo" ]]; then
echo "Opening tempo"
open_command "${jira_url}/secure/Tempo.jspa"
elif [[ "$action" == "dumpconfig" ]]; then
echo "JIRA_URL=$jira_url"
echo "JIRA_PREFIX=$jira_prefix"
Expand Down

0 comments on commit f08e50f

Please sign in to comment.