Skip to content

Instantly share code, notes, and snippets.

@jehrhardt
Last active August 29, 2015 14:09
Show Gist options
  • Save jehrhardt/031906021e7198cc080e to your computer and use it in GitHub Desktop.
Save jehrhardt/031906021e7198cc080e to your computer and use it in GitHub Desktop.
#!/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"
}
#!/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