Skip to main content

Clojure

(ns core    (:require [clj-http.client :as client]))  (clj-http.client/post "<YOURTRIGGERURL>"    {    :async? true    :headers {"apikey" "<YOURTOKEN>"}    :body "{\"options\": { \"method\": \"GET\",\"headers\": {\"Content-Type\": \"application/json\",\"Accept\": \"application/json\"}}, \"url\": \"/rest/api/3/issue/DEV-16\"}"    }    (fn [response] (println "response is:" response))    (fn [exception] (println "exception message is: " (.getMessage exception)))  )