Skip to main content

TypeScript

const example = async () => {  const response = await fetch("<YOURTRIGGERURL>", {    method: "POST",    headers: {      "Content-Type": "application/json",      Accept: "application/json",      apiKey: "<YOURTOKEN>",    },    body: JSON.stringify({      options: {        method: "GET",        headers: {          "Content-Type": "application/json",          Accept: "application/json",        },      },      url: "/rest/api/3/issue/DEV-16",    }),  });  const responseJira = await response.text();  console.log("response", JSON.stringify(JSON.parse(responseJira), null, 2));};example();