Skip to content

Instantly share code, notes, and snippets.

@printminion
Created October 29, 2015 12:15
Show Gist options
  • Save printminion/900b884309b64f5218bf to your computer and use it in GitHub Desktop.
Save printminion/900b884309b64f5218bf to your computer and use it in GitHub Desktop.
Get feature status from Jira
#!/bin/bash
#not working
#put yout domain here
JIRA_DOMAIN='https://jira.exampe.co'
#put your jira cookie here
JIRA_AUTH_COOKIE='Cookie: B99Z-2ZSI-HP7B-YQ6D|4e3c46668f653877516e3588114ba8c010e2d4e2|lin'
while read feature
do
echo "${JIRA_DOMAIN}/rest/api/latest/issue/$feature"
echo "$JIRA_AUTH_COOKIE"
curl "${JIRA_DOMAIN}/rest/api/latest/issue/$feature" \
-H "'Cookie: $JIRA_AUTH_COOKIE'" \
--compressed
# | json key fields.created fields.status.name | tr '\n' '\t'
echo -e
done < features.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment