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
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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) ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can view the tickets in Jira. Attaching screenshot for reference.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.