In the ajax example you are passing 4 elements as a JSON body, which will end up like this:
{"service_key": "1379ca7018e94343bf5fa5add9fa42eb",
"incident_key": "srv01/HTTP",
"event_type": "trigger",
"description": "TEst Test"}
But in the groovy example you are only passing two query string params (which will be passed on the uri).
You should probably replace
uri.query = [ service_key:'1.0', event_type: 'trigger' ]
with:
body = [service_key:'1.0', incident_key: "srv01/HTTP", event_type: 'trigger' description: "TEst Test"]
You should also output the response data in your failure response handlers as many services will give you a description of why you are not meeting the service contract.