jira_api_v2/models/jira_expression_eval_context_bean.rs
1/*
2 * The Jira Cloud platform REST API
3 *
4 * Jira Cloud platform REST API documentation
5 *
6 * The version of the OpenAPI document: 1001.0.0-SNAPSHOT
7 * Contact: ecosystem@atlassian.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct JiraExpressionEvalContextBean {
16 /// The issue that is available under the `issue` variable when evaluating the expression.
17 #[serde(rename = "issue", skip_serializing_if = "Option::is_none")]
18 pub issue: Option<Box<models::IdOrKeyBean>>,
19 /// The collection of issues that is available under the `issues` variable when evaluating the expression.
20 #[serde(rename = "issues", skip_serializing_if = "Option::is_none")]
21 pub issues: Option<Box<models::JexpIssues>>,
22 /// The project that is available under the `project` variable when evaluating the expression.
23 #[serde(rename = "project", skip_serializing_if = "Option::is_none")]
24 pub project: Option<Box<models::IdOrKeyBean>>,
25 /// The ID of the sprint that is available under the `sprint` variable when evaluating the expression.
26 #[serde(rename = "sprint", skip_serializing_if = "Option::is_none")]
27 pub sprint: Option<i64>,
28 /// The ID of the board that is available under the `board` variable when evaluating the expression.
29 #[serde(rename = "board", skip_serializing_if = "Option::is_none")]
30 pub board: Option<i64>,
31 /// The ID of the service desk that is available under the `serviceDesk` variable when evaluating the expression.
32 #[serde(rename = "serviceDesk", skip_serializing_if = "Option::is_none")]
33 pub service_desk: Option<i64>,
34 /// The ID of the customer request that is available under the `customerRequest` variable when evaluating the expression. This is the same as the ID of the underlying Jira issue, but the customer request context variable will have a different type.
35 #[serde(rename = "customerRequest", skip_serializing_if = "Option::is_none")]
36 pub customer_request: Option<i64>,
37}
38
39impl JiraExpressionEvalContextBean {
40 pub fn new() -> JiraExpressionEvalContextBean {
41 JiraExpressionEvalContextBean {
42 issue: None,
43 issues: None,
44 project: None,
45 sprint: None,
46 board: None,
47 service_desk: None,
48 customer_request: None,
49 }
50 }
51}
52