Created
October 29, 2015 12:15
-
-
Save printminion/900b884309b64f5218bf to your computer and use it in GitHub Desktop.
Get feature status from Jira
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 | |
#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