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
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:
@BaseScript FieldBehaviours fieldBehaviours
def log = Logger.getLogger(getClass())
log.debug("---- Behaviour running ----")
This will output to the atlassian-jira.log
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