Jira Rest API call from a Java plugin

SAL to the rescue!

Take a look at Unable to compile due to com.atlassian.sal.api.net - #3 by daniel

If you use SAL’s httpclient you can have it do the magic using applicationlinkservice.