I am trying to call the Jira REST API from a Bamboo CommonTaskType. I am successfully injecting the applicationLinks and the JiraRestService. I have a bi-directional OAuth Application link between my local Bamboo development server and my Jira Server.
Whenever I make this call:
JiraRestResponse response = jiraRestService.doRestCallViaApplink(jiraApplicationLink,
"/rest/api/latest/configuration", MethodType.GET, null);
I get a 401 with:
You are not authenticated. Authentication required to perform this operation
I have linked Jiras in Bamboo and clicked the links to prompt the OAuth token generation and I can follow entity links between the 2 applications, but still no auth when using the ApplicationLink from the Task.
Any idea what I am missing, as its probably something stupid?
Also, is that the recommended way to call Jira from a Bamboo Task?
Thanks!
-Dave
Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!
Register todayOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.