Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Initialiser not working when mapping issue types


Hi all,

When mapping a behaviour to a single, multiple individually selected or all individually selected issue types the initialiser fails to work. If mapped with "All Issue Types" it works without fail. 

I'm trying to map this code to a single issue type. Here is the example code I am using:

def desc = getFieldById("description")


def defaultValue = """

Here the template...

""".replaceAll(/ /, '')


if (! underlyingIssue?.description) {



Would anyone have any ideas?

1 answer

Hi @Hunter1428

After going through your description, I have some doubts to clarify.

Firstly, could you please specify what version of Jira and ScriptRunner you are currently using?

Next, could you please share a screenshot of your Behaviour configuration?

Also, could you please clarify whether you are trying the code above on an Initialiser Behaviour or a Server-Side Behaviour?

Thank you and Kind regards,


Hi @Ram Kumar Aravindakshan _Adaptavist_ 

Here are the details you requested.

  • Jira - 7.7.2
  • Scriptrunner - 5.6.7

Being performed on the Initialiser:


Thank you

Hi @Hunter1428

You appear to be using an unsupported version of Jira and a pretty outdated version of ScriptRunner.

The issue you are encountering seems to be related to the bug SRJIRA-2859, for which a workaround has already been provided. 

It would be best if you were to upgrade your Jira instance to at least 8.20.0 to be able to use the latest version of ScriptRunner, which has new features and other bug fixes.

Thank you and Kind regards,


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Online AMA this week: Your project management questions answered by Jira Design Lead James Rotanson

We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...

208 views 1 6
Read article

Atlassian Community Events