Forge JQL function custom errors not showing

In the Forge JQL functions module I am returning the error object as described in documentation:

{
    "error": errorMessage
}

I have tried running this JQL function from several different pages (filters, issues page etc) and am not seeing custom errors show in any of these places.

Is there more to it than just returning that object? Or am I misunderstanding something else?

The response on Error handling in Forge JQL functions - Forge - The Atlassian Developer Community says to use the Issues page but that doesn’t show for me as in the screenshots, though when I’ve found the board page with the same icon, I still don’t see the custom error message.

What I see on any filtering page is the empty state with message:

We couldn’t load your search results
Refresh to try again.

Thanks,

Tom

1 Like

Is it possible that whatever JQL query you’re using to test your function has already returned a successful response previously? If the answer is yes, then I’m guessing the results have already been stored as a precomputation and it will continue to return back those cached results until you update the precomputation to return back an error.

Thanks for the response.

I did check for this - I’m using Forge Tunnel and putting in fresh inputs, and seeing the function called in my terminal and returning and error object as expected, so I don’t believe it’s a precomputation issue.

I am having the same issue. The error messages I used to see in the UI are not showing up at all now.

1 Like

Might be related to this: https://developer.atlassian.com/cloud/jira/platform/changelog/#CHANGE-3103

1 Like