Atlassian's Transition to Forge Events and Missing Event Properties
The transition to native Forge events is required due to Atlassian’s platform changes and the deprecation of the old event model. These new Forge events have a different structure and do not include all properties previously available. Some event properties that were available in the old model are now missing and cannot be retrieved from the Atlassian API, as outlined in the table below:
Action Required!
Event type | Missing properties |
|---|---|
Issuelink Created |
|
Worklog Updated |
|
Worklog Created |
|
Version Moved |
|
Project Deleted |
|
Issuetype Deleted |
|
Issue Deleted |
|
Deprecation reports
You can use ScriptRunner for Jira Cloud's deprecation reports to identify Atlassian's deprecated endpoints, fields, and event types in your instance.
Examples
Issue Deleted
If you have Script Listeners set up for the Issue Deleted event, and your code relies on the issue.duedate property, it will not work once we transition to the Forge Product Events. You will need to modify your script to avoid using this property. Unfortunately, there is no way to retrieve missing properties from the Atlassian REST API.
def totalBalanceFiled = issue.customfield_1712301 // custom fields are not provided in payloadFor deleted events, the missing properties cannot be retrieved because the entity no longer exists. For event types other than deleted, such as created, updated, moved, and so on, Atlassian has not provided the details in the API.
Issuetype Deleted
if (issuetype.subtask) { // if deleted issue type is a subtask, skip the execution
return
}When the issue type is deleted, we can no longer check if it was a subtask so you need to delete that code.
Project Deleted
def projectKey = project.name // it doesn't existVersion Released
def releaseDate = version.userReleaseDate // it doesn't exist