pub struct JiraCreateFrontmatter {
pub type: Option<String>,
pub key: String,
pub project: Option<String>,
pub summary: Option<String>,
pub issue_type: Option<String>,
pub labels: Vec<String>,
pub custom_fields: BTreeMap<String, Value>,
}Expand description
Lenient JIRA frontmatter used only by the jira create path.
Unlike JiraFrontmatter — which backs the strict read/write/edit
round-trip and requires instance and summary — every field here is
optional, so the create command can fall back to CLI flags for anything
the document omits (or accept a document with no frontmatter at all).
Unknown fields carried over from a round-tripped issue (instance,
status, assignee, …) are ignored: instance is irrelevant to create
because the client is built from auth config, not the document.
Fields§
§type: Option<String>Document type tag, when present. Used to reject confluence documents.
key: StringJIRA issue key (e.g., “PROJ-123”). The project is derived from it when no explicit project is given.
project: Option<String>Project key (e.g., “PROJ”).
summary: Option<String>Issue summary (title).
issue_type: Option<String>Issue type name (Bug, Story, Task, etc.).
labels: Vec<String>Labels applied to the issue.
custom_fields: BTreeMap<String, Value>Scalar custom field values keyed by human-readable field name.
Trait Implementations§
Source§impl Clone for JiraCreateFrontmatter
impl Clone for JiraCreateFrontmatter
Source§fn clone(&self) -> JiraCreateFrontmatter
fn clone(&self) -> JiraCreateFrontmatter
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more