Basic Auth stopped working for atlassian.net few days ago

Akshay Somvanshi June 10, 2024

Hi,

I have already generated API token in Jira by following these steps.
Then followed these steps to setup basic auth header.

This worked and then it suddenly stopped working few days ago.

Below is code

token = Base 65 encode of email:API token
headers = {'Authorization': token}
response = requests.get(https://XXXXXX.atlassian.net/rest/api/2/search?jql=project=PROJECTNAME AND status="Waiting for support", headers=headers, verify=False)

Error received:

"The value 'PROJECTNAME' does not exist for the field 'project'."

Error code: 400

 

Can you please help if something has deprecated/changed?

Regards,

Akshay

 

1 answer

1 accepted

0 votes
Answer accepted
Fazila Ashraf
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 10, 2024

Hi @Akshay Somvanshi 

Welcome to community!

Can you verify whether the PROJECTNAME mentioned actually exists with the same name and the account has access to browse the issues in the project?

Akshay Somvanshi June 10, 2024

Hi @Fazila Ashraf 

PROJECTNAME is just a placeholder as I don't intend to disclose the details. The project does exist since 1 year in system.

I have below permissions which also have not changed since project is created.

* Administrators

* Service Desk Collaborators

* Service Desk Customers

Fazila Ashraf
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 10, 2024

What you mentioned is the role and not necessarily they all have the permission. 

The account on which the API token is generated, can you verify whether the account can search this JQL in the browser (outside the script) ?

Akshay Somvanshi June 10, 2024

Can view the tickets in Jira. Attaching screenshot for reference.

Jira screenshot.jpg

Akshay Somvanshi June 11, 2024

Hi @Fazila Ashraf 

The issue is that URI was changed by admins and I was not informed.

After changing URI it worked.

Thank you for the support.

Regards,

Akshay

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events