jira
jira copied to clipboard
Unable to paginate `search_issues` with `properties`
Bug summary
A issue occurs when paginating through JQL issue responses when including a properties
parameter (has never occured without the properties parameter)
Is there an existing issue for this?
- [X] I have searched the existing issues
Jira Instance type
Jira Cloud (Hosted by Atlassian)
Jira instance version
No response
jira-python version
3.8.0
Python Interpreter version
3.11.7
Which operating systems have you used?
- [X] Linux
- [ ] macOS
- [X] Windows
Reproduction steps
# 1. Given a Jira client instance
jira: JIRA
# 2. When I call the function with argument x
jql = 'my jql query'
properties = 'relatedSalesforceEntities'
expand = 'changelog'
jira.search_issues(jql_str=jql,properties=properties,expand=expand,json_result=False)
## Triggers a JiraError 500 for a URL way down during pagination
Stack trace
JIRAError: JiraError HTTP 500 url: <redacted>
text: Duplicate key 2618528 (attempted merging values com.atlassian.jira.issue.comments.ImmutableComment@48c05b and com.atlassian.jira.issue.comments.ImmutableComment@48c05c)
response headers = {'Date': 'Wed, 22 May 2024 16:51:11 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Server': 'AtlassianEdge', 'Timing-Allow-Origin': '*', 'X-Arequestid': '3616485ea01aa7a87798f50fb7f659be', 'X-Aaccountid': '712020%3Aa3f8693a-d5f6-4217-b972-6fcd823f3ab0', 'Cache-Control': 'no-cache, no-store, no-transform', 'X-Content-Type-Options': 'nosniff', 'X-Xss-Protection': '1; mode=block', 'Atl-Traceid': '67442f46c51046448150054267bd5e0f', 'Strict-Transport-Security': 'max-age=63072000; includeSubDomains; preload', '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"}', 'Transfer-Encoding': 'chunked'}
response text = {"message":"Duplicate key 2618528 (attempted merging values com.atlassian.jira.issue.comments.ImmutableComment@48c05b and com.atlassian.jira.issue.comments.ImmutableComment@48c05c)","status-code":500,"stack-trace":""}
Expected behaviour
A result list to be returned with no error. When entering the URL manually to a requests.get
or within a authenticated browser session, no error is returned.
Additional Context
No response