1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* The Jira Cloud platform REST API
*
* Jira Cloud platform REST API documentation
*
* The version of the OpenAPI document: 1001.0.0-SNAPSHOT-af42c50d50804c2f1b8ad4bb80d52c53890867e2
* Contact: ecosystem@atlassian.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// WorkflowSchemeProjectSwitchBean : Request to switch a project's workflow scheme
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct WorkflowSchemeProjectSwitchBean {
/// The mappings for migrating issues from old statuses to new statuses when switching from one workflow scheme to another. This field is required if any statuses in the current project's workflows would no longer exist in the target workflow scheme. Each mapping defines how to update issues from an old status to the corresponding new status in the issue’s new workflow.
#[serde(rename = "mappingsByIssueTypeOverride", skip_serializing_if = "Option::is_none")]
pub mappings_by_issue_type_override: Option<Vec<models::MappingsByIssueTypeOverride>>,
/// The ID of the project to switch the workflow scheme for
#[serde(rename = "projectId", skip_serializing_if = "Option::is_none")]
pub project_id: Option<String>,
/// The ID of the target workflow scheme to switch to
#[serde(rename = "targetSchemeId", skip_serializing_if = "Option::is_none")]
pub target_scheme_id: Option<String>,
}
impl WorkflowSchemeProjectSwitchBean {
/// Request to switch a project's workflow scheme
pub fn new() -> WorkflowSchemeProjectSwitchBean {
WorkflowSchemeProjectSwitchBean {
mappings_by_issue_type_override: None,
project_id: None,
target_scheme_id: None,
}
}
}