← ClaudeAtlas

scriptrunner-behaviourslisted

Use when a user asks to write, debug, refactor, or review a ScriptRunner Cloud behaviour in TypeScript, or mentions getFieldById, getContext, makeRequest, ONLOAD, ONCHANGE, extensions.yaml, field visibility, field validation, or template pre-filling on issue screens
serso-pt/scriptrunner-skills · ★ 0 · Code & Development · score 70
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 ###