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

Gowri_Sankar February 10, 2020

Hi,

I'm converting a text field in to single select using select list conversion referring to the link https://scriptrunner.adaptavist.com/5.0.3/jira/behaviours-conversions.html

 

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

0 votes
Matthew Clark
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 10, 2020

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.setLevel(Level.DEBUG)

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

This will output to the atlassian-jira.log

Regards

Matthew

Suggest an answer

Log in or Sign up to answer