Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to user a radio button in order to trigger a multiline field in jira service desk


i am wrapping my head around how to set up a behaviour, that does the following:

I have a radio buttons field with the options (1) Analysis and (2) Tracking.

In a field "purpose" i want to have a certain text if Analysis is selected and no text at all if Tracking is selected.

Anybody knows how to do this and can show me directions for? Thank you!

1 answer

1 accepted

0 votes
Answer accepted
Antoine Berry Community Leader Jan 27, 2020

Hi @Thomas Gschwendner ,

I would advise to create a behaviour and link it to the radio buttons field, and use this code snippet : 

import com.onresolve.jira.groovy.user.FieldBehaviours
import groovy.transform.BaseScript

@BaseScript FieldBehaviours fieldBehaviours

def purposeId = 12900
def purpose = getFieldById("customfield_" + purposeId)

def checkBoxFieldId = 12800
def checkBoxField = getFieldById("customfield_" + checkBoxFieldId)
def checkBoxValue = checkBoxField.getValue()

if (checkBoxValue?.contains("Analysis")){
purpose.setFormValue("Analysis is selected")
if (checkBoxValue?.contains("Tracking")){

Update it with your custom fields ids.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

New Cloud Apps Roundup - Spring 2021

Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...

120 views 3 14
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you