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
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.