Sometimes the error 'Internal Server Error – Failed to invoke API function: jql-search-post' occurs when visiting an issue on the Mojira website (e.g. visiting Mojira - Issue MC-267847,not related to a specific issue) and will work correctly again after a short time.
This is being tracked in WEB-8183