When is the issue object available by default in the script editor?

The issue object is available in the following contexts:

  • Post-functions

  • Listeners (as event.issue)

    The issue binding variable is only available for events that contain a single issue object. This means only issue events (excluding issue link events).

  • Behaviours (as underlyingIssue)

    Not available on the Create screen.

  • Scripted Fields

You will have to declare a specific issue object in the following contexts:

  • Script Console

  • Mail Handler