I am creating my first plugin and I need to get a page from confluence into jira. I have done this with scriptrunner on our production server but while testing my plugin using the jira sdk version I cannot get the application link working in either my plugin or scriptrunner.
2018-12-03 06:23:20,426 http-nio-2990-exec-7 WARN admin 383x2389x1 15b5d1r 0:0:0:0:0:0:0:1 /rest/applinks/3.0/status/15c94955-b142-3252-b37d-377fed69ef0c [c.a.a.i.migration.remote.TryWithCredentials] You do not have an authorized access token for the remote resource.
When I try it from my plugin I get a CredentialsException thrown with error; You do not have an authorized access token for the remote resource.
I am using atlas-run from my plugin directory and for confluence: atlas-run-standalone --product confluence
I have setup the links as Oath and both sides are shown as Connected and Primary,
Any help would be appreciated.