Hi @JdrzejFulara,
Thanks for your question, it looks like a similar one was answered here - Can't call Jira API from forge confluence module
You’ll need to install your app in both Jira and Confluence, then it should work.
Let me know if you have any further questions.
Cheers,
Mel