Use JIRA_DEFAULT_ACTION in place of JIRA_DASHBOARD

This commit is contained in:
Zack Hsi 2015-08-30 21:02:30 -06:00
commit 1ddd678fcc

View file

@ -3,11 +3,11 @@
# .jira-url in the current directory takes precedence # .jira-url in the current directory takes precedence
# #
# If you prefer the jira command to show your dashboard, set: # If you prefer the jira command to show your dashboard, set:
#JIRA_DASHBOARD="true" # JIRA_DEFAULT_ACTION="dashboard"
# in you .zshrc # in you .zshrc
# #
# If you use Rapid Board, set: # If you use Rapid Board, set:
#JIRA_RAPID_BOARD="true" # JIRA_RAPID_BOARD="true"
# in you .zshrc # in you .zshrc
# #
# Setup: cd to/my/project # Setup: cd to/my/project
@ -35,7 +35,7 @@ open_jira_issue () {
fi fi
if [ -z "$1" ]; then if [ -z "$1" ]; then
if [[ "$JIRA_DASHBOARD" = "true" ]]; then if [[ "$JIRA_DEFAULT_ACTION" = "dashboard" ]]; then
open_command "${jira_url}/secure/Dashboard.jspa" open_command "${jira_url}/secure/Dashboard.jspa"
else else
open_command "${jira_url}/secure/CreateIssue!default.jspa" open_command "${jira_url}/secure/CreateIssue!default.jspa"