Validation expression fails on => for Jira:customField with collection

Hi,

I am making a custom field with the Jira:customField module in Forge.

I want to create a validation expression:

      validation:
        expression: value == null || value == [] || value.every(x => x.match("[A-Z]{2,}-\\d+"))
        errorMessage: The value must consist only of Jira keys

But then I alwasy get the following error:
image

What am I doing wrong?

Thanks.

Hey, @TimVerstraete,

The expression in your manifest looks correct. Indeed, I tried evaluating it with the REST API and it was parsed correctly. Perhaps the error message refers to some previous version of your app? Have you tried redeploying?