I have cloud account signed up and able to login (no err message, supposedly working).
jira_options={'server': "https://ggjira100.atlassian.net/jira}"}jira = jira.JIRA('https://ggjira100.atlassian.net', basic_auth=("<username>", "<tokenkeyvalue>"))
Retrieving projects sort of seems to be working or not working meaning, it does not spit out error message but returns nothing empty value when i know there are already several projects are created??
projects=jira.projects()
I also tried retrieveing issue which threw out error saying or at least saying in the mangled message that issue can not be found or not permissible to access with this call:
issue=jira.issue("issue-1000-1001")
The error message:
Traceback...
jira.exceptions.JIRAError: JiraError HTTP 404 url: https://ggjira100.atlassian.net/rest/api/2/i
ssue/issue-1000-1001text: Issue does not exist or you do not have permission to see it.
If I notice this link: https://ggjira100.atlassian.net/rest/api/2/issue/issue-1000-1001 it appears the python api I am using is using rest-api but fails as above.
I also checked the URI of the actual issue that is known to exist in browser which is:
https://ggjira100.atlassian.net/projects/GG/issues
or
https://ggjira100.atlassian.net/browse/GG-1 goes to the actual using using its key GG-1.
What gives??
Hello @guyen gn ,
The error message is 404, not found, and indeed the below endpoint does not look correct at all:
https://ggjira100.atlassian.net/rest/api/2/issue/issue-1000-1001
If you want to get the details of issue GG-1 using REST API, then you should call below endpoint instead:
https://ggjira100.atlassian.net/rest/api/2/issue/GG-1
Also, looking at below lines I have some concerns:
Indeed:
However, when in doubt, you can always test the REST API calls using Curl (or Postman or any other tool) in order to try to isolate where the problem is.
Cheers,Dario
thanks I switched to another pipy plugin that works much better and moved on. THanks.,
Thanks for letting us know.
There are indeed chances the plugin you were using before was actually for Jira Server (since it was still using username and password to authenticate).
However, since this is not an issue anymore, I will proceed accepting the answer to this thread in order to mark it as resolved.
Have a nice day!
Dario
@guyen gn, I met the same issue and struggle with it. could you tell me how you solve this problem? thanks
Am trying to intergrate Kiwi(tcms) with jira tool as a bug tracker Am facing issueconfiguration like:
Internal error: JiraError HTTP 404 url: https://dfoundryproduct101.atlassian.net/jira/your-work/rest/api/2/serverInfotext: <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>Oops, you've found a dead link. - JIRA</title><link type='text/css' rel='stylesheet' href='/static-assets/metal-all.css' media='all'><script src='/static-assets/metal-all.js'></script><meta name="decorator" content="none" /></head><body class=" error-page error404"><script type="text/javascript">document.body.className += " js-enabled";</script><div id="page"><header id="header" role="banner"></header><!-- #header --><section id="content" role="main"><div class="aui-page-panel"><div class="aui-page-panel-inner"><section class="aui-page-panel-content lowerContent"><div id="error-state"><span class="error-type"></span><h1>Oops, you've found a dead link.</h1><ul><li>Go back to the <a href="javascript:window.history.back()">previous page</a></li><li>Go to the <a href="/secure/MyJiraHome.jspa">Home Page</a></li></ul></div></section><!-- .aui-page-panel-content --></div><!-- .aui-page-panel-inner --></div><!-- .aui-page-panel --></section><!-- #content --><footer id="footer" role="contentinfo"><section class="footer-body"><ul class="atlassian-footer"><li>Atlassian JIRA <a class="seo-link" href="https://www.atlassian.com/software/jira">Project Management Software</a><span id="footer-build-information">(v1001.0.0-SNAPSHOT#100225-<span title='5ff5564464bdb7fb9eec5dec75e7e3c79c5d02de' data-commit-id='5ff5564464bdb7fb9eec5dec75e7e3c79c5d02de}'>sha1:5ff5564</span>)</span></li><li><a id="about-link" href="/secure/AboutPage.jspa">About JIRA</a></li><li><a id="footer-report-problem-link" href="/secure/ContactAdministrators!default.jspa">Report a problem</a></li></ul><div id="footer-logo"><a href="http://www.atlassian.com/" rel="nofollow">Atlassian</a></div></section></footer><!-- #footer --></div><!-- #page --></body></html>response headers = {'Date': 'Mon, 08 May 2023 06:56:25 GMT', 'Content-Type': 'text/html;charset=UTF-8', 'Server': 'AtlassianEdge', 'Timing-Allow-Origin': '*', 'X-Arequestid': 'fa26249f7f5fce4d6e522d03445ba595', 'X-Seraph-Loginreason': 'AUTHENTICATED_FAILED', 'Set-Cookie': 'atlassian.xsrf.token=32af488f-5612-4a32-9d6a-e76e4d698931_7c3d04c1869c849eff919661f9a258e8d2bdb940_lout; path=/; SameSite=None; Secure', 'Content-Encoding': 'gzip', 'X-Content-Type-Options': 'nosniff', 'X-Xss-Protection': '1; mode=block', 'Atl-Traceid': 'b6e64af76c3ee773', 'Report-To': '{"endpoints": [{"url": "https://dz8aopenkvv6s.cloudfront.net"}], "group": "endpoint-1", "include_subdomains": true, "max_age": 600}', 'Nel': '{"failure_fraction": 0.001, "include_subdomains": true, "max_age": 600, "report_to": "endpoint-1"}', 'Strict-Transport-Security': 'max-age=63072000; includeSubDomains; preload', 'Transfer-Encoding': 'chunked'}response text = <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>Oops, you've found a dead link. - JIRA</title><link type='text/css' rel='stylesheet' href='/static-assets/metal-all.css' media='all'><script src='/static-assets/metal-all.js'></script><meta name="decorator" content="none" /></head><body class=" error-page error404"><script type="text/javascript">document.body.className += " js-enabled";</script><div id="page"><header id="header" role="banner"></header><!-- #header --><section id="content" role="main"><div class="aui-page-panel"><div class="aui-page-panel-inner"><section class="aui-page-panel-content lowerContent"><div id="error-state"><span class="error-type"></span><h1>Oops, you've found a dead link.</h1><ul><li>Go back to the <a href="javascript:window.history.back()">previous page</a></li><li>Go to the <a href="/secure/MyJiraHome.jspa">Home Page</a></li></ul></div></section><!-- .aui-page-panel-content --></div><!-- .aui-page-panel-inner --></div><!-- .aui-page-panel --></section><!-- #content --><footer id="footer" role="contentinfo"><section class="footer-body"><ul class="atlassian-footer"><li>Atlassian JIRA <a class="seo-link" href="https://www.atlassian.com/software/jira">Project Management Software</a><span id="footer-build-information">(v1001.0.0-SNAPSHOT#100225-<span title='5ff5564464bdb7fb9eec5dec75e7e3c79c5d02de' data-commit-id='5ff5564464bdb7fb9eec5dec75e7e3c79c5d02de}'>sha1:5ff5564</span>)</span></li><li><a id="about-link" href="/secure/AboutPage.jspa">About JIRA</a></li><li><a id="footer-report-problem-link" href="/secure/ContactAdministrators!default.jspa">Report a problem</a></li></ul><div id="footer-logo"><a href="http://www.atlassian.com/" rel="nofollow">Atlassian</a></div></section></footer><!-- #footer --></div><!-- #page --></body></html>
Is ther any solution please help me Thanks
It looks like you're new here. Sign in or register to get started.