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

For how-to questions please ask on Atlassian Answers where there is a very active community. Adaptavist staff are also likely to respond there.

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