How to get current issueKey

Hi,
sorry but that doesn’t answer my question at all :D.
useProductContext() doesn’t work on jira.

What I’ve found out is that there’s a getIssueContext() function what might give me the IssueIdorKey but it throws me an error its not defined ;D

And I’m well aware of the fact that there’s an issue translator app in forge and I used it but the api doesn’t work how it should after adaption.
here you can take a look.