Skip to content

Instantly share code, notes, and snippets.

@StevenACoffman
Created February 15, 2017 17:47
Show Gist options
  • Save StevenACoffman/4b1b8cc65425b5c5139b19a4421b3c92 to your computer and use it in GitHub Desktop.
Save StevenACoffman/4b1b8cc65425b5c5139b19a4421b3c92 to your computer and use it in GitHub Desktop.
JIRA curl to retrieve issue information
#!/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