I'm having trouble creating webhooks using the Jira REST API within my Forge app. Here is the request I'm making:
const webhookPayload = {
name: "Sprint Updated Webhook",
enabled: true,
description: "Webhook for getting sprint updates",
url: webhookUrl,
events: [
"jira:sprint_created",
"jira:sprint_updated",
"jira:sprint_deleted"
],
excludeBody: false,
secret: null,
filters: {"issue-related-events-section": ""},
lastUpdatedDisplayName: "",
lastUpdatedUse: ""
};
const response = await api.asApp().requestJira(route`/rest/webhooks/1.0/webhook`, {
method: 'POST',
body: JSON.stringify(webhookPayload),
headers: {
'Content-Type': 'application/json'
}
});
Despite this, I'm not seeing the webhook being created in my Jira instance. Here are some additional details:
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.