GitLabApiClient
GitLabApiClient copied to clipboard
how to search "!="
I want to use "not" condition for search.
-
public Task<IList<Issue>> GetAllAsync(ProjectId projectId = null, GroupId groupId = null, Action<IssuesQueryOptions> options = null);
-
how to use
IssuesQueryOptions
?
https://github.com/nmklotas/GitLabApiClient/issues/139#issuecomment-617705269
var issues = await gitClient.Issues.GetAllAsync(projectId: "group/project", options: o => o.Filter = "Assignee != Something");
Okay looking at the API: https://docs.gitlab.com/ee/api/issues.html#list-project-issues we do not support the not
hash attribute.
- thank you for your consideration.
- this is ok.
IList<Issue> issues = await gitLabClient.Issues.GetAllAsync(projectId: project.Id, groupId: null, options: options =>
{
options.State = IssueState.Opened;
});
- but. the count of
issues
is 0. It does not work well.
IList<Issue> issues = await gitLabClient.Issues.GetAllAsync(projectId: project.Id, groupId: null, options: options =>
{
options.Filter = "state=opened";
});