Skip to main content

Module custom_fields

Module custom_fields 

Source
Expand description

Resolves frontmatter custom field values and body sections to a JIRA fields payload for write operations.

Input:

  • Frontmatter scalar map keyed by human name (from custom_fields: in JFM).
  • Body sections parsed via [crate::atlassian::document::split_custom_sections].
  • EditMeta fetched for the target issue (or create target).

Output: { field_id -> api_json } ready to be merged into a PUT/POST.

Functionsยง

merge_set_field_overrides
Merges CLI --set-field overrides into a frontmatter scalar map, with CLI overriding frontmatter on name conflicts.
parse_set_field
Parses a --set-field NAME=VALUE argument into a (name, value) pair.
resolve_custom_fields
Resolves a mixed set of frontmatter scalars and body sections into an API-ready custom field map keyed by stable field ID.