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?
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.
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.