GitLabApiClient icon indicating copy to clipboard operation
GitLabApiClient copied to clipboard

how to search "!="

Open hhko opened this issue 4 years ago • 3 comments

I want to use "not" condition for search. image

  • public Task<IList<Issue>> GetAllAsync(ProjectId projectId = null, GroupId groupId = null, Action<IssuesQueryOptions> options = null);

  • how to use IssuesQueryOptions?

hhko avatar May 01 '20 08:05 hhko

https://github.com/nmklotas/GitLabApiClient/issues/139#issuecomment-617705269

var issues = await gitClient.Issues.GetAllAsync(projectId: "group/project", options: o => o.Filter = "Assignee != Something");

jetersen avatar May 01 '20 08:05 jetersen

Okay looking at the API: https://docs.gitlab.com/ee/api/issues.html#list-project-issues we do not support the not hash attribute.

jetersen avatar May 01 '20 08:05 jetersen

  • 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";
                });

hhko avatar May 01 '20 08:05 hhko