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

Enable "not" parameter in search query #700

Closed
fpiccinali opened this issue Feb 21, 2022 · 3 comments
Closed

Enable "not" parameter in search query #700

fpiccinali opened this issue Feb 21, 2022 · 3 comments
Labels

Comments

@fpiccinali
Copy link

fpiccinali commented Feb 21, 2022

In https://docs.gitlab.com/ee/api/issues.html#list-issues, there is a parameter "not" wich invert the way the query select issues.

It is used when you need issues who have not the label needed for instance.

If i use :

 $parameters = [
                "scope" => "all",
                "per_page" => 100,
                "page" => $n,
                "state" => "closed",
                 "not[labels]"="Any,LABEL1,LABEL2"
            ];
            $page = $this->client->issues()->all($project_id, $parameters);

I have this error message :

The option "not" does not exist. Defined options are: "assignee_id", "created_after", "created_before", "iids", "labels", "milestone", "order_by", "page", "per_page", "scope", "search", "sort", "state", "updated_after", "updated_before", "weight", "with_labels_details".

Is there a way to have this parameter avalaible ?

@fpiccinali
Copy link
Author

@stale
Copy link

stale bot commented Jun 23, 2022

This issue has been automatically marked as stale because there has been no recent activity. It will be closed after 30 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 23, 2022
@fpiccinali
Copy link
Author

ping

@stale stale bot closed this as completed Jul 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant