Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Search using search request" - POST method #467

Closed
tess1o opened this issue Jul 22, 2022 · 1 comment
Closed

Add "Search using search request" - POST method #467

tess1o opened this issue Jul 22, 2022 · 1 comment

Comments

@tess1o
Copy link

tess1o commented Jul 22, 2022

Please consider implementation of "Search using search request" with POST method. It allows to avoid GET requests limitations (for instance the length of GET url).

Atlassian documentation - https://docs.atlassian.com/software/jira/docs/api/REST/8.4.2/#api/2/search-searchUsingSearchRequest

API: POST /rest/api/2/search
Request body example:

{
    "jql": "project = HSP",
    "startAt": 0,
    "maxResults": 15,
    "fields": [
        "summary",
        "status",
        "assignee"
    ]
}

Response example:

{
    "expand": "names,schema",
    "startAt": 0,
    "maxResults": 50,
    "total": 1,
    "issues": [
        {
            "expand": "",
            "id": "10001",
            "self": "http://www.example.com/jira/rest/api/2/issue/10001",
            "key": "HSP-1"
        }
    ]
}
@tess1o
Copy link
Author

tess1o commented Jul 22, 2022

There is a PR that implements this API - #461

I will close this ticket, hope it can be merged

@tess1o tess1o closed this as completed Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant