From d6def96e670f46feec63b573bfaf794b14e9a6f3 Mon Sep 17 00:00:00 2001 From: meichthys Date: Sun, 21 Dec 2025 03:59:53 +0000 Subject: [PATCH] Add status field with pre-defined states. --- .../doctype/church_task/church_task.json | 37 +++++++++++++++++-- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/church/church_operations/doctype/church_task/church_task.json b/church/church_operations/doctype/church_task/church_task.json index 3d38edb..bc42070 100644 --- a/church/church_operations/doctype/church_task/church_task.json +++ b/church/church_operations/doctype/church_task/church_task.json @@ -10,6 +10,7 @@ "field_order": [ "section_break_fgnk", "title", + "status", "due_date", "assigned_person", "column_break_yrnx", @@ -131,18 +132,31 @@ }, { "allow_in_quick_entry": 1, - "description": "For generic items that do not exist in the system, you can create sub-tasks by checking 'Is Group' and then creating new tasks wit hthis task selected in the new task's 'Parent Task' field. ", + "description": "For generic items that do not exist in the system, you can create a checklist in the notes section below or create sub-tasks by checking 'Is Group' and then creating new tasks wit hthis task selected in the new task's 'Parent Task' field. ", "fieldname": "task_items", "fieldtype": "Table", "label": "Task Items", "options": "Church Task Item" + }, + { + "allow_in_quick_entry": 1, + "default": "Open", + "fieldname": "status", + "fieldtype": "Select", + "in_filter": 1, + "in_list_view": 1, + "in_preview": 1, + "in_standard_filter": 1, + "label": "Status", + "options": "Open\nAssigned\nIn Progress\nCompleted", + "reqd": 1 } ], "grid_page_length": 50, "index_web_pages_for_search": 1, "is_tree": 1, "links": [], - "modified": "2025-12-20 22:43:14.677845", + "modified": "2025-12-20 22:59:11.776100", "modified_by": "Administrator", "module": "Church Operations", "name": "Church Task", @@ -182,6 +196,23 @@ "show_title_field_in_link": 1, "sort_field": "modified", "sort_order": "DESC", - "states": [], + "states": [ + { + "color": "Red", + "title": "Open" + }, + { + "color": "Purple", + "title": "Assigned" + }, + { + "color": "Yellow", + "title": "In Progress" + }, + { + "color": "Green", + "title": "Completed" + } + ], "title_field": "title" } \ No newline at end of file