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

Select list conversion using script runner in edit screen doesn't work


I'm converting a text field in to single select using select list conversion referring to the link


I managed to bring the select list from create issue screen, but when the issue is opened from the edit screen the text box is not converted to select list and still showing as a text field. 

I tried employing my code in initialiser  as mentioned in the above link but when I place my code in initialiser  the code is not working. Hence, I have added the field in behaviour and placed my code.


Jira version - 8.x

With Regards,

Gowri Sankar

1 answer

This should work correctly in both the edit screen and create screens.

Are you running the latest version of scriptrunner or the version in the link you posted? (5.0.3)

Can you try adding some logging to the behaviour script that just outputs a simple string so you can check that it runs when you open the edit screen:

import org.apache.log4j.Logger
import org.apache.log4j.Level
import groovy.transform.BaseScript
@BaseScript FieldBehaviours fieldBehaviours

def log = Logger.getLogger(getClass())

log.debug("---- Behaviour running ----")

This will output to the atlassian-jira.log



Suggest an answer

Log in or Sign up to answer

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