Last active
August 29, 2015 14:09
-
-
Save jehrhardt/031906021e7198cc080e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function jira_issue() | |
{ | |
curl -u $JIRA_USERNAME:$JIRA_PASSWORD $JIRA_BASEURL'/rest/api/2/issue/'$1 | |
} | |
function jira_search() | |
{ | |
curl -G -u $JIRA_USERNAME:$JIRA_PASSWORD "$JIRA_BASEURL/rest/api/2/search" --data-urlencode "jql=$1" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo -n 'Your Jira URL:' | |
read JIRA_BASEURL | |
echo | |
echo -n 'Your Jira user name:' | |
read JIRA_USERNAME | |
echo | |
echo -n 'Your Jira password' | |
read -s JIRA_PASSWORD | |
echo | |
export JIRA_BASEURL | |
export JIRA_USERNAME | |
export JIRA_PASSWORD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment