Skip to content

Interface: IssueWebhookPayload ​

Defined in: src/webhooks/payloads.ts:67

An issue was created, edited or deleted.

The one payload Atlassian documents, and the shape a real delivery was observed to have.

Extends ​

Properties ​

changelog? ​

ts
optional changelog?: object;

Defined in: src/webhooks/payloads.ts:84

What changed. Present on an update, absent on a creation that changed nothing.

Index Signature ​

ts
[key: string]: unknown

author? ​

ts
optional author?: object;
Index Signature ​
ts
[key: string]: unknown
author.accountId? ​
ts
optional accountId?: string;

The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5.

author.accountType? ​
ts
optional accountType?: string;

The type of account represented by this user. This will be one of 'atlassian' (normal users), 'app' (application user) or 'customer' (Jira Service Desk customer user)

author.active? ​
ts
optional active?: boolean;

Whether the user is active.

author.avatarUrls? ​
ts
optional avatarUrls?: object;
Index Signature ​
ts
[key: string]: unknown
author.avatarUrls.16x16? ​
ts
optional 16x16?: string;

The URL of the item's 16x16 pixel avatar.

author.avatarUrls.24x24? ​
ts
optional 24x24?: string;

The URL of the item's 24x24 pixel avatar.

author.avatarUrls.32x32? ​
ts
optional 32x32?: string;

The URL of the item's 32x32 pixel avatar.

author.avatarUrls.48x48? ​
ts
optional 48x48?: string;

The URL of the item's 48x48 pixel avatar.

author.displayName? ​
ts
optional displayName?: string;

The display name of the user. Depending on the user’s privacy settings, this may return an alternative value.

author.emailAddress? ​
ts
optional emailAddress?: string;

The email address of the user. Depending on the user’s privacy settings, this may be returned as null.

author.self? ​
ts
optional self?: string;

The URL of the user.

author.timeZone? ​
ts
optional timeZone?: string;

The time zone specified in the user's profile. Depending on the user’s privacy settings, this may be returned as null.

created? ​

ts
optional created?: Date;

The date on which the change took place.

historyMetadata? ​

ts
optional historyMetadata?: object;
Index Signature ​
ts
[key: string]: unknown
historyMetadata.activityDescription? ​
ts
optional activityDescription?: string;

The activity described in the history record.

historyMetadata.activityDescriptionKey? ​
ts
optional activityDescriptionKey?: string;

The key of the activity described in the history record.

historyMetadata.actor? ​
ts
optional actor?: object;
Index Signature ​
ts
[key: string]: unknown
historyMetadata.actor.avatarUrl? ​
ts
optional avatarUrl?: string;

The URL to an avatar for the user or system associated with a history record.

historyMetadata.actor.displayName? ​
ts
optional displayName?: string;

The display name of the user or system associated with a history record.

historyMetadata.actor.displayNameKey? ​
ts
optional displayNameKey?: string;

The key of the display name of the user or system associated with a history record.

historyMetadata.actor.id? ​
ts
optional id?: string;

The ID of the user or system associated with a history record.

historyMetadata.actor.type? ​
ts
optional type?: string;

The type of the user or system associated with a history record.

historyMetadata.actor.url? ​
ts
optional url?: string;

The URL of the user or system associated with a history record.

historyMetadata.cause? ​
ts
optional cause?: object;
Index Signature ​
ts
[key: string]: unknown
historyMetadata.cause.avatarUrl? ​
ts
optional avatarUrl?: string;

The URL to an avatar for the user or system associated with a history record.

historyMetadata.cause.displayName? ​
ts
optional displayName?: string;

The display name of the user or system associated with a history record.

historyMetadata.cause.displayNameKey? ​
ts
optional displayNameKey?: string;

The key of the display name of the user or system associated with a history record.

historyMetadata.cause.id? ​
ts
optional id?: string;

The ID of the user or system associated with a history record.

historyMetadata.cause.type? ​
ts
optional type?: string;

The type of the user or system associated with a history record.

historyMetadata.cause.url? ​
ts
optional url?: string;

The URL of the user or system associated with a history record.

historyMetadata.description? ​
ts
optional description?: string;

The description of the history record.

historyMetadata.descriptionKey? ​
ts
optional descriptionKey?: string;

The description key of the history record.

historyMetadata.emailDescription? ​
ts
optional emailDescription?: string;

The description of the email address associated the history record.

historyMetadata.emailDescriptionKey? ​
ts
optional emailDescriptionKey?: string;

The description key of the email address associated the history record.

historyMetadata.extraData? ​
ts
optional extraData?: Record<string, string>;

Additional arbitrary information about the history record.

historyMetadata.generator? ​
ts
optional generator?: object;
Index Signature ​
ts
[key: string]: unknown
historyMetadata.generator.avatarUrl? ​
ts
optional avatarUrl?: string;

The URL to an avatar for the user or system associated with a history record.

historyMetadata.generator.displayName? ​
ts
optional displayName?: string;

The display name of the user or system associated with a history record.

historyMetadata.generator.displayNameKey? ​
ts
optional displayNameKey?: string;

The key of the display name of the user or system associated with a history record.

historyMetadata.generator.id? ​
ts
optional id?: string;

The ID of the user or system associated with a history record.

historyMetadata.generator.type? ​
ts
optional type?: string;

The type of the user or system associated with a history record.

historyMetadata.generator.url? ​
ts
optional url?: string;

The URL of the user or system associated with a history record.

historyMetadata.type? ​
ts
optional type?: string;

The type of the history record.

id? ​

ts
optional id?: string;

The ID of the changelog.

items? ​

ts
optional items?: object[];

The list of items changed.

Index Signature ​
ts
[key: string]: unknown

comment? ​

ts
optional comment?: object;

Defined in: src/webhooks/payloads.ts:87

The comment, when the update was someone commenting.

Index Signature ​

ts
[key: string]: unknown

author? ​

ts
optional author?: object;
Index Signature ​
ts
[key: string]: unknown
author.accountId? ​
ts
optional accountId?: string;

The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5.

author.accountType? ​
ts
optional accountType?: string;

The type of account represented by this user. This will be one of 'atlassian' (normal users), 'app' (application user) or 'customer' (Jira Service Desk customer user)

author.active? ​
ts
optional active?: boolean;

Whether the user is active.

author.avatarUrls? ​
ts
optional avatarUrls?: object;
Index Signature ​
ts
[key: string]: unknown
author.avatarUrls.16x16? ​
ts
optional 16x16?: string;

The URL of the item's 16x16 pixel avatar.

author.avatarUrls.24x24? ​
ts
optional 24x24?: string;

The URL of the item's 24x24 pixel avatar.

author.avatarUrls.32x32? ​
ts
optional 32x32?: string;

The URL of the item's 32x32 pixel avatar.

author.avatarUrls.48x48? ​
ts
optional 48x48?: string;

The URL of the item's 48x48 pixel avatar.

author.displayName? ​
ts
optional displayName?: string;

The display name of the user. Depending on the user’s privacy settings, this may return an alternative value.

author.emailAddress? ​
ts
optional emailAddress?: string;

The email address of the user. Depending on the user’s privacy settings, this may be returned as null.

author.self? ​
ts
optional self?: string;

The URL of the user.

author.timeZone? ​
ts
optional timeZone?: string;

The time zone specified in the user's profile. Depending on the user’s privacy settings, this may be returned as null.

body? ​

ts
optional body?: object;

The comment text in Atlassian Document Format.

Index Signature ​
ts
[key: string]: unknown
body.content ​
ts
content: Record<string, any>[];
body.type ​
ts
type: string & object | "doc";
body.version ​
ts
version: number;

created? ​

ts
optional created?: Date;

The date and time at which the comment was created.

id? ​

ts
optional id?: string;

The ID of the comment.

jsdAuthorCanSeeRequest? ​

ts
optional jsdAuthorCanSeeRequest?: boolean;

Whether the comment was added from an email sent by a person who is not part of the issue. See Allow external emails to be added as comments on issuesfor information on setting up this feature.

jsdPublic? ​

ts
optional jsdPublic?: boolean;

Whether the comment is visible in Jira Service Desk. Defaults to true when comments are created in the Jira Cloud Platform. This includes when the site doesn't use Jira Service Desk or the project isn't a Jira Service Desk project and, therefore, there is no Jira Service Desk for the issue to be visible on. To create a comment with its visibility in Jira Service Desk set to false, use the Jira Service Desk REST API Create request comment operation.

properties? ​

ts
optional properties?: object[];

A list of comment properties. Optional on create and update.

Index Signature ​
ts
[key: string]: unknown

renderedBody? ​

ts
optional renderedBody?: string;

The rendered version of the comment.

self? ​

ts
optional self?: string;

The URL of the comment.

updateAuthor? ​

ts
optional updateAuthor?: object;
Index Signature ​
ts
[key: string]: unknown
updateAuthor.accountId? ​
ts
optional accountId?: string;

The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5.

updateAuthor.accountType? ​
ts
optional accountType?: string;

The type of account represented by this user. This will be one of 'atlassian' (normal users), 'app' (application user) or 'customer' (Jira Service Desk customer user)

updateAuthor.active? ​
ts
optional active?: boolean;

Whether the user is active.

updateAuthor.avatarUrls? ​
ts
optional avatarUrls?: object;
Index Signature ​
ts
[key: string]: unknown
updateAuthor.avatarUrls.16x16? ​
ts
optional 16x16?: string;

The URL of the item's 16x16 pixel avatar.

updateAuthor.avatarUrls.24x24? ​
ts
optional 24x24?: string;

The URL of the item's 24x24 pixel avatar.

updateAuthor.avatarUrls.32x32? ​
ts
optional 32x32?: string;

The URL of the item's 32x32 pixel avatar.

updateAuthor.avatarUrls.48x48? ​
ts
optional 48x48?: string;

The URL of the item's 48x48 pixel avatar.

updateAuthor.displayName? ​
ts
optional displayName?: string;

The display name of the user. Depending on the user’s privacy settings, this may return an alternative value.

updateAuthor.emailAddress? ​
ts
optional emailAddress?: string;

The email address of the user. Depending on the user’s privacy settings, this may be returned as null.

updateAuthor.self? ​
ts
optional self?: string;

The URL of the user.

updateAuthor.timeZone? ​
ts
optional timeZone?: string;

The time zone specified in the user's profile. Depending on the user’s privacy settings, this may be returned as null.

updated? ​

ts
optional updated?: Date;

The date and time at which the comment was updated last.

visibility? ​

ts
optional visibility?: object;
Index Signature ​
ts
[key: string]: unknown
visibility.identifier? ​
ts
optional identifier?: string | null;

The ID of the group or the name of the role that visibility of this item is restricted to.

visibility.type? ​
ts
optional type?: "role" | "group" | string & object;

Whether visibility of this item is restricted to a group or role.

visibility.value? ​
ts
optional value?: string;

The name of the group or role that visibility of this item is restricted to. Please note that the name of a group is mutable, to reliably identify a group use identifier.


issue ​

ts
issue: Issue;

Defined in: src/webhooks/payloads.ts:78

The issue as it stands after the change. On a deletion, as it stood before.


issue_event_type_name ​

ts
issue_event_type_name: string;

Defined in: src/webhooks/payloads.ts:75

Jira's own name for what happened, finer than webhookEvent: an edit, a comment and a transition all arrive as jira:issue_updated and are told apart only here. Typed as the string it is rather than as a union, because an administrator can add issue events to a site and the set is therefore not closed.


matchedWebhookIds? ​

ts
optional matchedWebhookIds?: number[];

Defined in: src/webhooks/payloads.ts:59

The registrations this delivery answered. Present only on a webhook registered through the REST API, where one event can match several of them at once.

Inherited from ​

WebhookPayloadBase.matchedWebhookIds


timestamp ​

ts
timestamp: number;

Defined in: src/webhooks/payloads.ts:50

When Jira raised the event, in milliseconds since the epoch.

Inherited from ​

WebhookPayloadBase.timestamp


user? ​

ts
optional user?: object;

Defined in: src/webhooks/payloads.ts:81

Who caused it. Optional because nothing guarantees an actor — a scheduled change has none to name.

Index Signature ​

ts
[key: string]: unknown

accountId? ​

ts
optional accountId?: string;

The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5.

accountType? ​

ts
optional accountType?: string;

The type of account represented by this user. This will be one of 'atlassian' (normal users), 'app' (application user) or 'customer' (Jira Service Desk customer user)

active? ​

ts
optional active?: boolean;

Whether the user is active.

avatarUrls? ​

ts
optional avatarUrls?: object;
Index Signature ​
ts
[key: string]: unknown
avatarUrls.16x16? ​
ts
optional 16x16?: string;

The URL of the item's 16x16 pixel avatar.

avatarUrls.24x24? ​
ts
optional 24x24?: string;

The URL of the item's 24x24 pixel avatar.

avatarUrls.32x32? ​
ts
optional 32x32?: string;

The URL of the item's 32x32 pixel avatar.

avatarUrls.48x48? ​
ts
optional 48x48?: string;

The URL of the item's 48x48 pixel avatar.

displayName? ​

ts
optional displayName?: string;

The display name of the user. Depending on the user’s privacy settings, this may return an alternative value.

emailAddress? ​

ts
optional emailAddress?: string;

The email address of the user. Depending on the user’s privacy settings, this may be returned as null.

self? ​

ts
optional self?: string;

The URL of the user.

timeZone? ​

ts
optional timeZone?: string;

The time zone specified in the user's profile. Depending on the user’s privacy settings, this may be returned as null.


webhookEvent ​

ts
webhookEvent: IssueWebhookEvent;

Defined in: src/webhooks/payloads.ts:68

The event, and the field to switch on.

Overrides ​

WebhookPayloadBase.webhookEvent