pycontribs/jira

removed_issues is redirecting to the wrong url

Sites94 opened this issue · 0 comments

Bug summary

The method removed_issues, is returning a 404 error, as its resolving to:
rest/agile/1.0/rapid/charts/sprintreport?rapidViewId=49&sprintId=895

when it should instead resolve to:
rest/greenhopper/latest/rapid/charts/sprintreport?rapidViewId=49&sprintId=895

Is there an existing issue for this?

  • I have searched the existing issues

Jira Instance type

Jira Cloud (Hosted by Atlassian)

Jira instance version

No response

jira-python version

3.5.2

Python Interpreter version

3.11

Which operating systems have you used?

  • Linux
  • macOS
  • Windows

Reproduction steps

Just run:
jira.removed_issues(board_id, active_sprint_id)

Stack trace

(removed the company name from the url)

response headers = {'Date': 'Fri, 29 Sep 2023 13:36:32 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Server': 'AtlassianEdge', 'Timing-Allow-Origin': '*', 'X-Arequestid': 'ad563c43a59a7ed9053f53291adae5d1', 'X-Aaccountid': '60e2f1205cdb680071b879a5', 'Cache-Control': 'no-transform', 'Vary': 'Accept', 'Content-Encoding': 'gzip', 'X-Content-Type-Options': 'nosniff', 'X-Xss-Protection': '1; mode=block', 'Atl-Traceid': '9f2d1b1fb22f402d', '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 = {"message":"null for uri: https://{companyname}.atlassian.net/rest/agile/1.0/rapid/charts/sprintreport?rapidViewId=49&sprintId=895","status-code":404}

Expected behaviour

json file:
{
"contents": {
"completedIssues": [
{
"id": 28150,
"key": "RTBE-2756",
"hidden": false,
"parentId": 27874,
etc etc.

Additional Context

No response