From 1f3741a38efe3081ca55b512a5245a3f6471d66f Mon Sep 17 00:00:00 2001 From: Jean-Michel Leclercq Date: Tue, 15 Oct 2024 08:41:09 +0200 Subject: [PATCH] Add in field to IssueFilter (#1182) Fixes #1172 --- .../java/org/gitlab4j/api/models/IssueFilter.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main/java/org/gitlab4j/api/models/IssueFilter.java b/src/main/java/org/gitlab4j/api/models/IssueFilter.java index 66b6608b..13759511 100644 --- a/src/main/java/org/gitlab4j/api/models/IssueFilter.java +++ b/src/main/java/org/gitlab4j/api/models/IssueFilter.java @@ -35,6 +35,11 @@ public class IssueFilter implements Serializable { */ private IssueState state; + /** + * Modify the scope of the search attribute. title, description, or a string joining them with comma. Default is title,description + */ + private List in; + /** * Comma-separated list of label names, issues must have all labels to be returned. No+Label lists all issues with no labels. */ @@ -157,6 +162,14 @@ public void setState(IssueState state) { this.state = state; } + public List getIn() { + return in; + } + + public void setIn(List in) { + this.in = in; + } + public List getLabels() { return labels; } @@ -496,6 +509,7 @@ public GitLabApiForm getQueryParams() { .withParam("iids", iids) .withParam("state", state) .withParam("labels", (labels != null ? String.join(",", labels) : null)) + .withParam("in", (in != null ? String.join(",", in) : null)) .withParam("milestone", milestone) .withParam("scope", scope) .withParam("author_id", authorId)