I'd like to set a condition for a fast-track script based on the value of a custom field. I used to have this working in Scriptrunner (Server) but cannot find an example of how to work it using Scriptrunner (Cloud).
My successful old implementation was:
cfValues['Change Category']?.value == 'Fast Track'
All research done so far indicates I need to hard code the custom field ID to be something like (?!):
issueInput.fields.customfield_10107 == [value: '{{Fast Track}}'] as Mapwhere 10107 is the custom field ID. Which is not ideal as I'd like to refer to the name instead.
Any ideas?