scriptrunner-behaviourslisted
Install: claude install-skill serso-pt/scriptrunner-skills
# ScriptRunner Cloud Behaviours (TypeScript)
## Overview
Behaviours are imperative TypeScript scripts with globally-declared APIs (no imports). Events (ONLOAD, ONCHANGE) and view types (GIC, IssueView, IssueTransition) are configured in `extensions.yaml`, not in TypeScript code. The script runs top-to-bottom when triggered.
## Quick Reference
| API | Signature | Purpose |
| ------------------------- | ----------------------------------------- | ------------------------------------ |
| `getFieldById(id)` | `getFieldById<T>(id: T): Field<T>` | Get a field by ID (type-safe) |
| `getContext()` | `() => Promise<ForgeContext>` | Get issue key, site URL, environment |
| `makeRequest(url, opts?)` | `(url, opts?) => Promise<{status, body}>` | HTTP requests to Jira REST APIs |
| `getChangeField()` | `() => Field<any>` | Field that triggered ONCHANGE |
| `isCreateView()` | `() => boolean` | Currently on issue create screen |
| `isIssueView()` | `() => boolean` | Currently on issue detail view |
| `isTransitionView()` | `() => boolean` | Currently on transition dialog |
| `console.warn/log/error` | standard | Logging to browser console |
## Global APIs
###