Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37230,6 +37230,15 @@ components:
description: Search query following the event search syntax.
example: "service:orders-* AND @language:go"
type: string
states:
description: Filter issues by state. Multiple values are combined with OR logic.
example:
- "OPEN"
- "ACKNOWLEDGED"
items:
$ref: "#/components/schemas/IssueState"
maxItems: 20
type: array
team_ids:
description: Filter issues by team IDs. Multiple values are combined with OR logic.
example:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
IssuesSearchRequestDataAttributes.JSON_PROPERTY_ORDER_BY,
IssuesSearchRequestDataAttributes.JSON_PROPERTY_PERSONA,
IssuesSearchRequestDataAttributes.JSON_PROPERTY_QUERY,
IssuesSearchRequestDataAttributes.JSON_PROPERTY_STATES,
IssuesSearchRequestDataAttributes.JSON_PROPERTY_TEAM_IDS,
IssuesSearchRequestDataAttributes.JSON_PROPERTY_TO,
IssuesSearchRequestDataAttributes.JSON_PROPERTY_TRACK
Expand All @@ -50,6 +51,9 @@ public class IssuesSearchRequestDataAttributes {
public static final String JSON_PROPERTY_QUERY = "query";
private String query;

public static final String JSON_PROPERTY_STATES = "states";
private List<IssueState> states = null;

public static final String JSON_PROPERTY_TEAM_IDS = "team_ids";
private List<UUID> teamIds = null;

Expand Down Expand Up @@ -192,6 +196,36 @@ public void setQuery(String query) {
this.query = query;
}

public IssuesSearchRequestDataAttributes states(List<IssueState> states) {
this.states = states;
return this;
}

public IssuesSearchRequestDataAttributes addStatesItem(IssueState statesItem) {
if (this.states == null) {
this.states = new ArrayList<>();
}
this.states.add(statesItem);
this.unparsed |= !statesItem.isValid();
return this;
}

/**
* Filter issues by state. Multiple values are combined with OR logic.
*
* @return states
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_STATES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<IssueState> getStates() {
return states;
}

public void setStates(List<IssueState> states) {
this.states = states;
}

public IssuesSearchRequestDataAttributes teamIds(List<UUID> teamIds) {
this.teamIds = teamIds;
return this;
Expand Down Expand Up @@ -328,6 +362,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.orderBy, issuesSearchRequestDataAttributes.orderBy)
&& Objects.equals(this.persona, issuesSearchRequestDataAttributes.persona)
&& Objects.equals(this.query, issuesSearchRequestDataAttributes.query)
&& Objects.equals(this.states, issuesSearchRequestDataAttributes.states)
&& Objects.equals(this.teamIds, issuesSearchRequestDataAttributes.teamIds)
&& Objects.equals(this.to, issuesSearchRequestDataAttributes.to)
&& Objects.equals(this.track, issuesSearchRequestDataAttributes.track)
Expand All @@ -338,7 +373,16 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
assigneeIds, from, orderBy, persona, query, teamIds, to, track, additionalProperties);
assigneeIds,
from,
orderBy,
persona,
query,
states,
teamIds,
to,
track,
additionalProperties);
}

@Override
Expand All @@ -350,6 +394,7 @@ public String toString() {
sb.append(" orderBy: ").append(toIndentedString(orderBy)).append("\n");
sb.append(" persona: ").append(toIndentedString(persona)).append("\n");
sb.append(" query: ").append(toIndentedString(query)).append("\n");
sb.append(" states: ").append(toIndentedString(states)).append("\n");
sb.append(" teamIds: ").append(toIndentedString(teamIds)).append("\n");
sb.append(" to: ").append(toIndentedString(to)).append("\n");
sb.append(" track: ").append(toIndentedString(track)).append("\n");
Expand Down
Loading