From 219f11689199d3eb9215868ae64322c8ffbf1a11 Mon Sep 17 00:00:00 2001 From: Daan Boerlage Date: Tue, 21 Jan 2025 17:17:36 +0100 Subject: [PATCH] Show additional data on ticket creation confirmation --- src/cmd/create.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/cmd/create.rs b/src/cmd/create.rs index 8996c30..b4e0151 100644 --- a/src/cmd/create.rs +++ b/src/cmd/create.rs @@ -376,9 +376,19 @@ pub async fn create( // Confirm creation println!("\nAbout to create ticket:"); + println!("Project: {}", selected_project); + if let Some(status) = &metadata.status { + println!("Status: {}", status); + } + if let Some(assignee) = &metadata.assignee { + println!("Assignee: {}", assignee); + } + if let Some(parent) = &metadata.parent { + println!("Parent: {}", parent); + } println!("Title: {}", title); - println!("{}", description); - // println!("{}...", &description.chars().take(100).collect::()); + + println!("Description:\n{}", description); println!("\nPress Enter to continue or Ctrl+C to abort"); let mut input = String::new();