I’m building a Forge app with a custom JQL function module, and I’d like to show custom error messages when a user enters invalid input or when my resolver logic fails validation.
For example:
If the user writes a query like
issue IN issueswithJqlnew("project == rws AND issuetype = task", "1")
I want to show something like
“Invalid Jql: please provide a valid JQL.”
Is there any way to throw or return a custom error message from within the JQL function code so that Jira displays it to the user in the JQL editor or results panel (instead of a generic error like ‘Error in the JQL Query’)?
If anyone has implemented custom validation or user-friendly errors in Forge JQL functions, I’d really appreciate some guidance or code examples.