Skip to content
Open
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
16 changes: 14 additions & 2 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119945,7 +119945,12 @@ components:
format: uuid
type: string
fields:
description: Custom fields of the Jira issue to create. For the list of available fields, see [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get).
description: |-
Target-specific fields of the ticket to create.

For `target: jira`, the custom fields of the Jira issue. For the list of available fields, see [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get).

For `target: linear`, the optional keys `linear_project_id` (string, the identifier of the Linear project the issue is created in) and `linear_label_ids` (array of strings, the identifiers of the Linear labels applied to the issue).
example:
labels:
- security
Expand Down Expand Up @@ -119982,7 +119987,12 @@ components:
example: "Daily ticket creation limit exceeded"
type: string
fields:
description: Custom fields of the Jira issue to create. For the list of available fields, see [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get).
description: |-
Target-specific fields of the ticket to create.

For `target: jira`, the custom fields of the Jira issue. For the list of available fields, see [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get).

For `target: linear`, the optional keys `linear_project_id` (string, the identifier of the Linear project the issue is created in) and `linear_label_ids` (array of strings, the identifiers of the Linear labels applied to the issue).
example:
labels:
- security
Expand Down Expand Up @@ -120180,11 +120190,13 @@ components:
enum:
- jira
- case_management
- linear
example: jira
type: string
x-enum-varnames:
- JIRA
- CASE_MANAGEMENT
- LINEAR
TimeAggregation:
description: |-
Time aggregation period (in seconds) is used to aggregate the results of the notification rule evaluation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,17 @@ public TicketCreationRuleAction fields(Object fields) {
}

/**
* Custom fields of the Jira issue to create. For the list of available fields, see <a
* Target-specific fields of the ticket to create.
*
* <p>For <code>target: jira</code>, the custom fields of the Jira issue. For the list of
* available fields, see <a
* href="https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get">Jira
* documentation</a>.
*
* <p>For <code>target: linear</code>, the optional keys <code>linear_project_id</code> (string,
* the identifier of the Linear project the issue is created in) and <code>linear_label_ids</code>
* (array of strings, the identifiers of the Linear labels applied to the issue).
*
* @return fields
*/
@jakarta.annotation.Nullable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,17 @@ public TicketCreationRuleActionResponse fields(Object fields) {
}

/**
* Custom fields of the Jira issue to create. For the list of available fields, see <a
* Target-specific fields of the ticket to create.
*
* <p>For <code>target: jira</code>, the custom fields of the Jira issue. For the list of
* available fields, see <a
* href="https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get">Jira
* documentation</a>.
*
* <p>For <code>target: linear</code>, the optional keys <code>linear_project_id</code> (string,
* the identifier of the Linear project the issue is created in) and <code>linear_label_ids</code>
* (array of strings, the identifiers of the Linear labels applied to the issue).
*
* @return fields
*/
@jakarta.annotation.Nullable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@
public class TicketCreationTarget extends ModelEnum<String> {

private static final Set<String> allowedValues =
new HashSet<String>(Arrays.asList("jira", "case_management"));
new HashSet<String>(Arrays.asList("jira", "case_management", "linear"));

public static final TicketCreationTarget JIRA = new TicketCreationTarget("jira");
public static final TicketCreationTarget CASE_MANAGEMENT =
new TicketCreationTarget("case_management");
public static final TicketCreationTarget LINEAR = new TicketCreationTarget("linear");

TicketCreationTarget(String value) {
super(value, allowedValues);
Expand Down
Loading