jira_api_v2/models/issue_update_details.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/// IssueUpdateDetails : Details of an issue update request.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct IssueUpdateDetails {
17 /// Details of a transition. Required when performing a transition, optional when creating or editing an issue.
18 #[serde(rename = "transition", skip_serializing_if = "Option::is_none")]
19 pub transition: Option<models::IssueTransition>,
20 /// List of issue screen fields to update, specifying the sub-field to update and its value for each field. This field provides a straightforward option when setting a sub-field. When multiple sub-fields or other operations are required, use `update`. Fields included in here cannot be included in `update`.
21 #[serde(rename = "fields", skip_serializing_if = "Option::is_none")]
22 pub fields: Option<std::collections::HashMap<String, serde_json::Value>>,
23 /// List of operations to perform on issue screen fields. Note that fields included in here cannot be included in `fields`.
24 #[serde(rename = "update", skip_serializing_if = "Option::is_none")]
25 pub update: Option<std::collections::HashMap<String, Vec<models::FieldUpdateOperation>>>,
26 /// Additional issue history details.
27 #[serde(rename = "historyMetadata", skip_serializing_if = "Option::is_none")]
28 pub history_metadata: Option<models::HistoryMetadata>,
29 /// Details of issue properties to be add or update.
30 #[serde(rename = "properties", skip_serializing_if = "Option::is_none")]
31 pub properties: Option<Vec<models::EntityProperty>>,
32}
33
34impl IssueUpdateDetails {
35 /// Details of an issue update request.
36 pub fn new() -> IssueUpdateDetails {
37 IssueUpdateDetails {
38 transition: None,
39 fields: None,
40 update: None,
41 history_metadata: None,
42 properties: None,
43 }
44 }
45}
46