@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown: true) class IssueEvent extends java.lang.Object
Represents data associated with issue-related events triggered by Jira Cloud webhooks.
This class captures the core event details, including the issue involved, event metadata, and any changes made to the issue during the event. It combines the webhook payload with additional contextual details for easier event processing.
Example Usage:
def event = webhookEventData as IssueEvent
println "Issue Key: ${event.issue.key"
println "Event Type: ${event.issueEventTypeName}"
println "User: ${event.user.displayName}"
issueEvent.changelog.items.each { change ->
println "Field '${change.field}' changed from '${change.fromString}' to '${change.toString}'"
}
}
You can use this class to inspect the issue details, identify changes made during the event, and perform logic based on the event type or user triggering the event.
| Type | Name and description |
|---|---|
Changelog |
changelogThe changelog capturing details about the fields that changed during the event. |
Issue |
issueThe issue associated with the event. |
java.lang.String |
issueEventTypeId |
java.lang.String |
issueEventTypeName |
java.sql.Timestamp |
timestamp |
User |
user |
java.lang.String |
webhookEvent |
| Constructor and description |
|---|
IssueEvent() |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
The changelog capturing details about the fields that changed during the event. Use this to inspect changes made to the issue.
The issue associated with the event. Deserialized into an Issue.
Groovy Documentation