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
Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!
Help us plant more trees