From ceacfaa2062c882ef6f5989003bce11936d09654 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Fri, 23 Jul 2021 08:57:07 +0200 Subject: Example collection to implement a ticket tracker --- docs/examples/ticket_tracker/README.rst | 9 +++++++++ docs/examples/ticket_tracker/aliases.sh | 9 +++++++++ docs/examples/ticket_tracker/settings.yaml | 26 ++++++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 docs/examples/ticket_tracker/README.rst create mode 100644 docs/examples/ticket_tracker/aliases.sh create mode 100644 docs/examples/ticket_tracker/settings.yaml diff --git a/docs/examples/ticket_tracker/README.rst b/docs/examples/ticket_tracker/README.rst new file mode 100644 index 0000000..a767598 --- /dev/null +++ b/docs/examples/ticket_tracker/README.rst @@ -0,0 +1,9 @@ +########### + Our Tasks +########### + +This is an example on how to use lesana to manage a personal / few users +ticket tracker. + +The file ``aliases.sh`` can be sourced (``. ./aliases.sh``) to provide +helpers for common searches. diff --git a/docs/examples/ticket_tracker/aliases.sh b/docs/examples/ticket_tracker/aliases.sh new file mode 100644 index 0000000..e2371e1 --- /dev/null +++ b/docs/examples/ticket_tracker/aliases.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +LTT_STS_OPEN='status:planned status:ready status:"in progress" status:comments' +LTT_STS_ACTIVE='status:"in progress" status:comments' +LTT_STS_CLOSED='status:done status:invalid' + +alias ltt-s-open="lesana search $LTT_STS_OPEN" +alias ltt-s-active="lesana search $LTT_STS_ACTIVE" +alias ltt-s-closed="lesana search $LTT_STS_CLOSED" diff --git a/docs/examples/ticket_tracker/settings.yaml b/docs/examples/ticket_tracker/settings.yaml new file mode 100644 index 0000000..67e87d0 --- /dev/null +++ b/docs/examples/ticket_tracker/settings.yaml @@ -0,0 +1,26 @@ +name: Our tasks +lang: english +entry_label: '{{ short_id }}: {{ name }} [{{ status }}]' +git: true +fields: +- name: name + type: string + prefix: S + index: free +- name: description + type: text + index: free +- name: status + type: text + index: field + help: planned|ready|in progress|comments|done|invalid + sortable: true +- name: assignee + type: string + index: field + help: insert your list of potential assignees here +- name: comments + type: list + list: text + index: free + -- cgit v1.2.3