Posted at

curlでRedmineのチケット一覧を取得

More than 3 years have passed since last update.

メモ

REDMINE_API_URL="hogehoge"

REDMINE_API_KEY="hogehoge"

REDMINE_TICKET_GET_COUNT=1

ticket_list=`curl -s "${REDMINE_API_URL}/issues.json?limit=${REDMINE_TICKET_GET_COUNT}&key=${REDMINE_API_KEY}" | /usr/local/bin/jq '.issues[] | {id,subject}'`