Internal
Create a new instance of the service.
Removes webhooks by ID. Only webhooks registered by the calling app are removed. If webhooks created by other apps are specified, they are ignored.
Permissions required: Only Connect and OAuth 2.0 apps can use this operation.
Returns a paginated list of the webhooks registered by the calling app.
Permissions required: Only Connect and OAuth 2.0 apps can use this operation.
Optional
maxThe maximum number of items to return per page.
Optional
startThe index of the first item to return in a page of results (page offset).
Returned if the request is successful.
example:
{
"isLast": true,
"maxResults": 3,
"startAt": 0,
"total": 3,
"values": [
{
"events": [
"jira:issue_updated",
"jira:issue_created"
],
"expirationDate": "2019-06-01T12:42:30.000+0000",
"fieldIdsFilter": [
"summary",
"customfield_10029"
],
"id": 10000,
"jqlFilter": "project = PRJ",
"url": "https://your-app.example.com/webhook-received"
},
{
"events": [
"jira:issue_created"
],
"expirationDate": "2019-06-01T12:42:30.000+0000",
"id": 10001,
"jqlFilter": "issuetype = Bug",
"url": "https://your-app.example.com/webhook-received"
},
{
"events": [
"issue_property_set"
],
"expirationDate": "2019-06-01T12:42:30.000+0000",
"id": 10002,
"issuePropertyKeysFilter": [
"my-issue-property-key"
],
"jqlFilter": "project = PRJ",
"url": "https://your-app.example.com/webhook-received"
}
]
}
Returns webhooks that have recently failed to be delivered to the requesting app after the maximum number of retries.
After 72 hours the failure may no longer be returned by this operation.
The oldest failure is returned first.
This method uses a cursor-based pagination. To request the next page use the
failure time of the last webhook on the list as the failedAfter
value or use
the URL provided in next
.
Permissions required: Only Connect apps can use this operation.
Optional
after?: numberThe time after which any webhook failure must have occurred for the record to be returned, expressed as milliseconds since the UNIX epoch.
Optional
maxThe maximum number of webhooks to return per page. If obeying the maxResults directive would result in records with the same failure time being split across pages, the directive is ignored and all records with the same failure time included on the page.
Returned if the request is successful.
example:
{
"values": [
{
"id": "1",
"body": "{\"data\":\"webhook data\"}",
"url": "https://example.com",
"failureTime": 1573118132000
},
{
"id": "2",
"url": "https://example.com",
"failureTime": 1573540473480
}
],
"maxResults": 100,
"next": "https://your-domain.atlassian.net/rest/api/3/webhook/failed?failedAfter=1573540473480&maxResults=100"
}
Extends the life of webhook. Webhooks registered through the REST API expire after 30 days. Call this operation to keep them alive.
Unrecognized webhook IDs (those that are not found or belong to other apps) are ignored.
Permissions required: Only Connect and OAuth 2.0 apps can use this operation.
Returned if the request is successful.
example:
{
"expirationDate": "2019-06-01T12:42:30.000+0000"
}
Registers webhooks.
NOTE: for non-public OAuth apps, webhooks are delivered only if there is a match between the app owner and the user who registered a dynamic webhook.
Permissions required: Only Connect and OAuth 2.0 apps can use this operation.
{
"url": "https://your-app.example.com/webhook-received",
"webhooks": [
{
"events": [
"jira:issue_created",
"jira:issue_updated"
],
"fieldIdsFilter": [
"summary",
"customfield_10029"
],
"jqlFilter": "project = PROJ"
},
{
"events": [
"jira:issue_deleted"
],
"jqlFilter": "project IN (PROJ, EXP) AND status = done"
},
{
"events": [
"issue_property_set"
],
"issuePropertyKeysFilter": [
"my-issue-property-key"
],
"jqlFilter": "project = PROJ"
}
]
}
Returned if the request is successful.
example:
{
"webhookRegistrationResult": [
{
"createdWebhookId": 1000
},
{
"errors": [
"The clause watchCount is unsupported"
]
},
{
"createdWebhookId": 1001
}
]
}
Protected
Static
initialize
This resource represents webhooks. Webhooks are calls sent to a URL when an event occurs in Jira for issues specified by a JQL query. Only Connect and OAuth 2.0 apps can register and manage webhooks. For more information, see Webhooks.
See
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-webhooks