ScriptRunner provides an action for Automation for Jira, that lets you run your own code.

automation for jira

At this stage the only function available is a "custom script", but you can call other ScriptRunner functions programmatically.

Binding Variables

issue

The issue object that triggered the event

currentUser

The ApplicationUser that initiated the event

errorCollection

An ErrorCollection - use it to record error conditions, eg errorCollection.addErrorMessage("Something went wrong")

executionContext

Use this if you need to retrieve any information about the rule that is currently firing

Have questions? Visit the Atlassian Community to connect, share, and learn with other Atlassian users and experts, including Adaptavist staff.

Ask a question about ScriptRunner for JIRA, Bitbucket Server, or Confluence.

Want to learn more? Check out courses on Adaptavist Learn, an online platform to onboard and train new users for Atlassian solutions.