I have built a costume application for Jira (I didn't use the Forge platform) and I want to get the application's current user data.
I tried to use some Atlassian JavaScript API functions such as 'getCurrentUser' (returns the Atlassian Account ID) and 'getUser' (returns a JWT token).
I also tried to use the '/myself' endpoint from the Jira Cloud platform REST API but it returns the application user and not the actual current user.
Is there another endpoint or a built-in function I can use to get the current user data?