1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-25 15:20:08 +00:00

jira: add tempo command (#8928)

This commit is contained in:
Dmitry 2020-05-21 19:11:18 +03:00 committed by GitHub
parent 9050ed34d1
commit 31c2dc32c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View file

@ -19,6 +19,7 @@ jira # performs the default action
jira new # opens a new issue jira new # opens a new issue
jira dashboard # opens your JIRA dashboard jira dashboard # opens your JIRA dashboard
jira tempo # opens your JIRA Tempo
jira reported [username] # queries for issues reported by a user jira reported [username] # queries for issues reported by a user
jira assigned [username] # queries for issues assigned to a user jira assigned [username] # queries for issues assigned to a user
jira myissues # queries for you own issues jira myissues # queries for you own issues

View file

@ -5,6 +5,7 @@ local -a _1st_arguments
_1st_arguments=( _1st_arguments=(
'new:create a new issue' 'new:create a new issue'
'dashboard:open the dashboard' 'dashboard:open the dashboard'
'tempo:open the tempo'
'reported:search for issues reported by a user' 'reported:search for issues reported by a user'
'assigned:search for issues assigned to a user' 'assigned:search for issues assigned to a user'
'branch:open the issue named after the git branch of the current directory' 'branch:open the issue named after the git branch of the current directory'

View file

@ -54,6 +54,9 @@ function jira() {
else else
open_command "${jira_url}/secure/Dashboard.jspa" open_command "${jira_url}/secure/Dashboard.jspa"
fi fi
elif [[ "$action" == "tempo" ]]; then
echo "Opening tempo"
open_command "${jira_url}/secure/Tempo.jspa"
elif [[ "$action" == "dumpconfig" ]]; then elif [[ "$action" == "dumpconfig" ]]; then
echo "JIRA_URL=$jira_url" echo "JIRA_URL=$jira_url"
echo "JIRA_PREFIX=$jira_prefix" echo "JIRA_PREFIX=$jira_prefix"