Skip to content

Instantly share code, notes, and snippets.

@g3rhard
Last active December 23, 2016 05:08
Show Gist options
  • Save g3rhard/6d45e749509a802eeafc557bacd6fce2 to your computer and use it in GitHub Desktop.
Save g3rhard/6d45e749509a802eeafc557bacd6fce2 to your computer and use it in GitHub Desktop.
create issues in Redmine with Redmine API and issues.json
#!/bin/bash
PROJECT="$1"
TRACKER="$2"
STATUS="$3"
PROJECT_ID="$4"
SUBJECT="$5"
PRIORITY_ID="$6"
curl -H 'X-Redmine-API-Key: <api-key>' \
-H 'Content-Type: application/json' \
-d '{ "issue": { "project":"'${PROJECT}'", "tracker":"'${TRACKER}'", "status":"'${STATUS}'", "project_id": "'${PROJECT_ID}'", "subject":"'${SUBJECT}'", "priority_id": "'${PRIORITY_ID}'" } }' -v 'http://server/issues.json'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment