scriptrunner-hapi-api
Installation
SKILL.md
ScriptRunner HAPI API Skill
Use the bundled HAPI JAR as the authority for available Cloud HAPI bytecode signatures. The normal lookup command reads class files with javap; it does not load or execute HAPI classes.
Required workflow
- Read the target product guidance from
scriptrunner-platform-guidancefirst. - Find a class when necessary:
sms-hapi-lookup --product jira --search Issuessms-hapi-lookup --product confluence --search Pages
- Inspect every class used by generated HAPI code:
sms-hapi-lookup --product jira com.adaptavist.hapi.cloud.jira.issues.Issuessms-hapi-lookup --product confluence com.adaptavist.hapi.cloud.confluence.pages.Pages
- Use
--member <name>to narrow large classes. The command follows HAPI superclasses and@DelegatesTotargets by default; with--depth 0it still names them under "Related but not expanded" so nothing is hidden. - Inspect return types before chaining. Run a separate lookup for a returned HAPI class when its members are not already shown.
- Pair signature evidence with the bundled ScriptRunner documentation for behaviour, examples, permissions, and platform constraints. A method's presence does not prove it is appropriate in every script context.
- Validate the final Groovy with
sms-groovy-check --platform cloud --product jira|confluence --context <context>.