We used a scripted field to automatically reformat a text label representing a version to a number so that we can easily search it and query for tickets matching a version number > or < a given version.
However this approach does not work in Jira Cloud because scripted fields are actually evaluated when a user press the button to view them.
We would really appreciate an automatic background refresh of scripted fields so that they can be effectively used in JQL