The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Getting an error while trying access the jira using atlassian api

Srujan Kumar
August 29, 2023

Getting the below error, as I was trying to access the get the issue data using api in python. I followed the atlassian developer document. But still failed to get it. 

"error": "Failed to parse Connect Session Auth Token"

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Srujan Kumar
September 6, 2023

Hi Team,

Anyone, please help me on this.

0 votes
Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 29, 2023

Hello, Good day. You are using user name and API token to for the authentication correct ?

Srujan Kumar
August 30, 2023

Hi @Mohanraj Thangamuthu 

I was using this as below adding my site details and my API token details. I didn't find any username. Also, our site is integrated with Okta SSO just FYI.

import requests

import json

url = "https://your-domain.atlassian.com/rest/agile/1.0/issue/{issueIdOrKey}"

headers = { "Accept": "application/json", "Authorization": "Bearer <access_token>" }

response = requests.request( "GET", url, headers=headers )

print(json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": ")))

Omar Nabulsi
April 11, 2025

Was there ever a solution on this?  I'm getting the exact same problem.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events