jira_api_v2/models/
bulk_issue_property_update_request.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/// BulkIssuePropertyUpdateRequest : Bulk issue property update request details.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BulkIssuePropertyUpdateRequest {
17    /// The value of the property. The value must be a [valid](https://tools.ietf.org/html/rfc4627), non-empty JSON blob. The maximum length is 32768 characters.
18    #[serde(rename = "value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19    pub value: Option<Option<serde_json::Value>>,
20    /// EXPERIMENTAL. The Jira expression to calculate the value of the property. The value of the expression must be an object that can be converted to JSON, such as a number, boolean, string, list, or map. The context variables available to the expression are `issue` and `user`. Issues for which the expression returns a value whose JSON representation is longer than 32768 characters are ignored.
21    #[serde(rename = "expression", skip_serializing_if = "Option::is_none")]
22    pub expression: Option<String>,
23    /// The bulk operation filter.
24    #[serde(rename = "filter", skip_serializing_if = "Option::is_none")]
25    pub filter: Option<Box<models::IssueFilterForBulkPropertySet>>,
26}
27
28impl BulkIssuePropertyUpdateRequest {
29    /// Bulk issue property update request details.
30    pub fn new() -> BulkIssuePropertyUpdateRequest {
31        BulkIssuePropertyUpdateRequest {
32            value: None,
33            expression: None,
34            filter: None,
35        }
36    }
37}
38