Skip to content

Instantly share code, notes, and snippets.

@azngeek azngeek/Jira Worklog
Last active Jan 3, 2016

Embed
What would you like to do?
if [ "${JIRA_Status}" == "Offen" ] || [ "${JIRA_Status}" == "Open" ]
then
# Fortschritt starten
TRANSITION_ID=4
else
# Fortschritt stoppen
TRANSITION_ID=301
fi
read -d '' data << EOF
{
"transition":
{
"id": "$TRANSITION_ID"
}
}
EOF
echo $data > /tmp/worklog.jira
curl -D- -u username:password -X POST --data @/tmp/worklog.jira -H "Content-Type: application/json" https://pm.mothership.de/rest/api/latest/issue/${JIRA_Key}/transitions?expand=transitions.fields
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.