I want to use python to derive the data from jira system, but it was stuck in the 1 step, I apply the API TOKEN and input the right URL, but it could not connect to https://ford.atlassian.net, I don't know where is wrong, could you help me with this question? thanks.
Hi @QLI111
If you are trying to access the Jira data through Python, try the rest api end points from https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/
Try the python example in https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-jql-get adjusting it to your site and auth.
Hope this helps!
appreciate your reply! I am using PyCharm for python coding, My purpose is that I want use python coding to filter all the software bug in specified project and generate some diagram to daily display the bug status. currently I was failed to connect to jira, I do not know why, could you help me with this question?
URL:https://ford.atlassian.net.
User name:QLI111@ford.com.
JIRA API Token: I apply a token in jira system.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @QLI111
You included your full Atlassian API Token in your other message. Because these tokens function like passwords, you should immediately revoke and delete that token in your Atlassian account settings and create a new one.
Are you in VPN? Could you check with your IT/Network team whether there are any restrictions? Share with them the output of :
nslookup ford.atlassian.net
ping ford.atlassian.net
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @QLI111
You usually can’t “ping” Atlassian Cloud with ICMP, so test with HTTPS API instead.
Try:
curl -u your_email:api_token https://ford.atlassian.net/rest/api/3/myself
Interpretation:
- 401 = auth/token issue
- 403 = account has no Jira access / tenant restrictions
- timeout = network/VPN/firewall/DNS issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
appreciate your feedback, I tried you recommendation, resulted as below:
curl -u QLI111@ford.com:<token>
result is "curl: (6) Could not resolve host: ford.atlassian.net"
seem like it still could not work, could you help take a look?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @QLI111
Thanks for testing that.
If `curl` returns `Could not resolve host: ford.atlassian.net`, then this is happening before Jira authentication. That means the problem is DNS/network resolution, not the API token itself.
A few things to check:
1. Make sure the full command includes the URL, for example:
`curl -v -u 'QLI111@ford.com:API_TOKEN' https://ford.atlassian.net/rest/api/3/myself`
2. Test DNS resolution directly:
`nslookup ford.atlassian.net`
or
`ping ford.atlassian.net`
3. Try opening `https://ford.atlassian.net` in the same machine/browser/network.
- If browser also cannot open it, this is likely VPN / DNS / firewall / proxy related.
- If browser works but `curl` does not, your shell may need proxy settings or the credentials may need quoting.
4. Since this is a corporate tenant, check whether you must be on Ford VPN or a managed network to resolve/access the site.
So at this point I would focus on network/DNS/proxy setup rather than Jira API settings.
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.