I want to access my work through api, I have used. I don't have much knowledge of APIs, So I have used three APIs and all the three gave me issues 401 error unauthorized.
the script is:
Hey George,
your problem is with using basic_auth, that is no longer supported by Jira Cloud.
You can read about it in the docs of the python project you're using: https://jira.readthedocs.io/examples.html#authentication
You'll need to use an api_token instead of your password.
You can generate a token in your Atlassian account, as explained here: https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/
I hope this helps.
Cheers,
Peter
Hello Peter Thanks for fast help. The jira is hosted under my company domain. Other thing i have used another API which is atlassian and jiraone and both gave me the same error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey George,
In that case you'll need to use Token Auth using a Personal Access Token, as explained here: https://jira.readthedocs.io/examples.html#token-auth
and here: https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html
Cheers,
Peter
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@George Nabil Eissa glad it hear it! it is helpful to the next person if you could mark the answer with "Accept answer" if it helped! :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You get 401 means that your request reach your Jira instance but you do not have permission.
It can be related to the fact that the account you are using do not have a valid Jira license or that there is an issue with the authentication part of the call.
What language are you using?
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Florain,
very thankful for your support. I have been using Python.
So regarding the Authentication. What would you suggest me to do?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.