Created
February 15, 2017 17:47
-
-
Save StevenACoffman/4b1b8cc65425b5c5139b19a4421b3c92 to your computer and use it in GitHub Desktop.
JIRA curl to retrieve issue information
This file contains hidden or 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 | |
JIRA_URL="https://jira.mydomain.org" | |
JIRA_AUTH_URI="/rest/auth/2/session" | |
JIRA_API_URI="/rest/api/2/" | |
curl -D - -u $JIRA_LOGIN:$JIRA_PASSWORD -X GET -H "Content-Type: application/json" -s ${JIRA_URL}${JIRA_API_URI/issue/$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment