Elements Connect

Transitioning to Freemarker only

Moving to FreeMarker

From Elements Connect 8.10.0, FreeMarker is the syntax for every query, path and template of connected fields. The legacy $… syntax is being retired: configurations that still use it keep working for now, and Elements Connect helps you move them to FreeMarker.

Why we are moving to FreeMarker

  • The same result everywhere: a dependency now behaves the same on the create and edit screens, the JSM portal, live values, post-functions and in the configuration tester.

  • Faster fields: one engine instead of two.

  • Safer fields: a value typed by a user is always treated as text, never run as code.

  • More possibilities: conditions, loops and formatting, see How to write conditional queries with Apache FreeMarker.

What changes for you

  • New configurations always use FreeMarker. The option to turn it off has been removed.

  • A configuration that still uses the legacy syntax keeps working, and you can still save it as long as you don’t edit it.

  • Once you edit a template, every template in use must be in FreeMarker before you can save.

  • A configuration that mixes both syntaxes keeps working.

  • Queries built with the SQL visual interface still use the legacy syntax and keep working.

Move a configuration to FreeMarker

  1. Open the connected field configuration.

  2. Legacy references are underlined in red. Under each template, Elements Connect shows its FreeMarker version.

  3. Click Replace to put the FreeMarker version in place of the template, or Copy to paste it yourself.

  4. Check the references listed under the proposal: their field type couldn’t be detected.

  5. Test the field with the Configuration tester.

  6. Click Save.

image-20261124-102452.png

Example

Legacy syntax

FreeMarker

/search?jql=project=$project

/search?jql=project=${project.key}

Frequently Asked Questions

Do I have to move my configurations now? No. They keep working as long as you don’t edit them. Moving them now lets you edit them freely later.

Will my fields return the same values after the move? Yes, in most cases. Some cases