Built-in Scripted Fields

As part of the ScriptRunner framework, there are provided built-in scripts that you can use. These save time on common scripted fields because you need to write little or no code to implement them.

Creating a new built-in scripted field

  1. Navigate to the Script Fields Screen.

  2. Click the "Add New Item" button (see screenshot below) to see a list of built-in script fields available.

csf add new item
  1. Select the field you wish to create by left-clicking on it.

csf select field
  1. Fill in the form with the parameters that you require for the selected field.

You can click "Preview" to run the script and check the value that your field will output.
  1. Click the "Add" button to add the field to your instance.

You’ll now notice that your new field should appear in the list on the Script Fields Screen.

  1. You should now configure the following

    1. The screens that you would like to see the field in

    2. The context that you would like the field to be available for

These are linked from both the the fields configuration menu. You will also see a warning when you first add the field linking you to these configurations (see screenshot below)

csf add warning

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.