Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata
cat << 'EOL' >create_payload.json
#/bin/bash

SUBJECT=$1

cat << EOF >payload.json
{
    "subject":"$SUBJECT",
    "description": {
        "format": "textile",
        "raw": "An issue has been detected by XYMon - Please Investigate, Document and Acknowledge Error"
    },
    "_links": {
        "type": {"href":"/api/v3/types/1"},
        "status":{"href":"/api/v3/statuses/1"},
        "priority":{"href":"/api/v3/priorities/8"}
    }
}
EOF
EOL
chmod +x create_payload.json
./create_payload.json "TEST SUBJECT"
cat payload.json
  • No labels