If you have the Jira Service Desk application, you can create behaviours specifically for the customer portal. You need to map them separately from project behaviours, because typically, though not always, they have different functionality.

If you want behaviours to be active in the customer portal, you must create a Service Desk mapping. Even if you associate a behaviour with All Issue Types in a project, unless you create a mapping to the Service Desk portal, they won’t be active.

In most other respects, using Behaviours with Service Desk is the same as with a normal Jira project.

In Service Desk you can provide a different label for each field, per portal and request type. However, when setting field behaviours for a request type, as with normal Jira, you set behaviours by field name. You can determine the actual field name by editing the request type fields.

For example, in a customer portal you may see:

portal view

To establish that this field is actually the Summary field, click the edit link on the field in the request types view:

edit field view


If the user selects Highest priority, we’re going to change the field label for the Description field, and change the help text so we can understand why the priority is so high.

import com.onresolve.jira.groovy.user.FieldBehaviours
import com.atlassian.jira.issue.priority.Priority
import groovy.transform.BaseScript

@BaseScript FieldBehaviours fieldBehaviours

if ((getFieldById(getFieldChanged()).value as Priority)?.name == "Highest") {
        .setLabel("Why do you need this and why so important?")
        .setDescription("Please explain why this is Highest priority including details of outage etc.")
} else {
        .setLabel("Why do you need this?")
        .setDescription("Tell us why you want this.")


When the customer changes the Priority to Highest the screen changes to look like the following:

jsd priority change

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.