Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
3524fc8d
Commit
3524fc8d
authored
Apr 26, 2016
by
Nicolas Charpentier
Browse files
JIRA Plugin will open rapidboard instead of dashboard if JIRA_RAPID_BOARD is true
parent
1b1315a7
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/jira/jira.plugin.zsh
View file @
3524fc8d
...
@@ -38,7 +38,11 @@ function jira() {
...
@@ -38,7 +38,11 @@ function jira() {
_jira_query
$@
_jira_query
$@
elif
[[
"
$action
"
==
"dashboard"
]]
;
then
elif
[[
"
$action
"
==
"dashboard"
]]
;
then
echo
"Opening dashboard"
echo
"Opening dashboard"
if
[[
"
$JIRA_RAPID_BOARD
"
==
"true"
]]
;
then
open_command
"
${
jira_url
}
/secure/RapidBoard.jspa"
else
open_command
"
${
jira_url
}
/secure/Dashboard.jspa"
open_command
"
${
jira_url
}
/secure/Dashboard.jspa"
fi
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
"
...
@@ -99,4 +103,3 @@ function _jira_query() {
...
@@ -99,4 +103,3 @@ function _jira_query() {
query
=
"
${
lookup
}
+%3D+%22
${
jira_name
}
%22+AND+resolution+%3D+unresolved+ORDER+BY+priority+DESC%2C+created+ASC"
query
=
"
${
lookup
}
+%3D+%22
${
jira_name
}
%22+AND+resolution+%3D+unresolved+ORDER+BY+priority+DESC%2C+created+ASC"
open_command
"
${
jira_url
}
/secure/IssueNavigator.jspa?reset=true&jqlQuery=
${
query
}
"
open_command
"
${
jira_url
}
/secure/IssueNavigator.jspa?reset=true&jqlQuery=
${
query
}
"
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment