Initial commit of pendingcontractsparser.py, associated mail-generators and jira-task-updater

This commit is contained in:
peignerpausz committed 2026-11-11 11:17:47 +01:00
1 parent 45646353dc
commit 6580517e9d
1 file changed
+33
+33
View File
@@ -0,0 +1,33 @@
#!/usr/bin/env python3
import csv
from datetime import datetime
INPUT_CSV = "activation_overview.csv"
ticket = input("Ticketnummer: ").strip()
order_no = input("Bestellnummer: ").strip()
found = False
with open(INPUT_CSV, newline="", encoding="utf-8") as f:
reader = csv.DictReader(f)
for row in reader:
if row["order_no"] == order_no:
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M")
print("\n--- JIRA Status ---\n")
print(
f"{timestamp} {ticket}\n\n"
f"{row['product']} für {row['domain']}"
)
found = True
break
if not found:
print("Bestellung nicht gefunden.")