go-jira icon indicating copy to clipboard operation
go-jira copied to clipboard

Support POST version for long JQL queries

Open assembly-winston opened this issue 1 year ago • 2 comments

What would you like to be added?

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-post

Add the POST version of the issue search API.

Why is this needed?

The current j.client.Issue.SearchWithContext() function uses the GET query, which limits the JQL query to 2000 characters.

Anything else we need to know?

Not really, this would be <20 lines max depending on implementation. In the simplest case, we can check the query length and auto-switch to POST if it's >=2000, add a method param, or we can just copy the implementation of the current one and name the function j.client.Issue.SearchThroughPostWithContext() or something.

assembly-winston avatar Feb 07 '24 20:02 assembly-winston

PR was closed without merge, this issue is still valid.

bpfoster avatar Jul 19 '24 17:07 bpfoster

I re-opened the issue. The PR need to be re-applied.

andygrunwald avatar Jul 20 '24 06:07 andygrunwald