Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to retrive projects from Splunk via Jira Service Desk Simple Addon

marco.gomiero
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 8, 2021

Dear All,

so I'm strugling a little bit with Splunk and the Splunk Add-on for JIRA Atlassian Service Desk application.

I've succefully installed the plugin on my local environment and configured with basic autentication, my username and a PAT I've created bounded to my account.

Just in case, via curl on the same local machine I can call succefully for example the rest api 

https://mycompany.atlassian.net/rest/api/3/project

curl --request GET --url 'https://mycomoany.atlassian.net/rest/api/3/project' --user 'name.surname@mycompany.com:GdfgdcdMZo0c5AiVmmYhD7E8' --header 'Accept: application/json'

 

I can see a well populated json starting with

 

[{"expand":"description,lead,issueTypes,url,projectKeys,permissions,insight","self": 

etc etc, so the PAT is working, I've no connettivity issue and I my credentials are granted to perform tasks on Jira.

 

Anyway, when I'm configuring the addon on splunk side, everything goes wrong and I cannot manage to retrive nothing.

and I cannot find any kind of useful log at the moment

 

I've have an empty answer:

Cattura1.JPG

 

But from Splunk side I think everything is fine:

 

Cattura.JPG

 

Obviously I've changed the actual values but, as I mentioned before, via curl it does work :(

maybe I'm missing something very stupid but I don't know what else to think

Many thanks in advance, any help will be much appriciated

Marco

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 12, 2021

Hi Marco,

While I am not familiar with this particular integration, I take it that you are using the addon documented over in https://ta-jira-service-desk-simple-addon.readthedocs.io/en/latest/index.html

I took a closer look at the configuration documentation over in https://ta-jira-service-desk-simple-addon.readthedocs.io/en/latest/configuration.html and it appears that you've selected the "Personal Access Token" option in the authentication method.  This is actually incorrect for a Jira Cloud site.  Try switching this to use the Basic authentication in that page, while still using your REST API token here. 

Part of the confusion here might be the term 'Personal Access Token'.  Atlassian has only ever used that precise term in regard to Jira Server/Data Center versions 8.14 and higher which have provided end users to create their own tokens (older versions on this platform do not have this feature natively).   Whereas in our Cloud platform, these are referred to simply as "API tokens".  I suspect this app is trying to manage both platforms which can leverage these different tokens in slightly different ways to make these calls.

Suggest an answer

Log in or Sign up to answer