mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-07 18:26:43 +02:00
Merge branch 'django-helpdesk:main' into BUG-1230-postgresql-version-django-missmatch
This commit is contained in:
commit
88b23058e9
@ -36,6 +36,10 @@ Before django-helpdesk will be much use, you need to do some basic configuration
|
|||||||
|
|
||||||
This will run the escalation process hourly, using the 'Escalation Days' setting for each queue to determine which tickets to escalate.
|
This will run the escalation process hourly, using the 'Escalation Days' setting for each queue to determine which tickets to escalate.
|
||||||
|
|
||||||
|
To notify users of outstanding tickets without adding an entry to the ticket, use the `notify-only` flag. This will send the emails without creating a follow-up::
|
||||||
|
|
||||||
|
0 * * * * /path/to/helpdesksite/manage.py escalate_tickets --notify-only
|
||||||
|
|
||||||
5. If you wish to exclude some days (eg, weekends) from escalation calculations, enter the dates manually via the Admin, or setup a cronjob to run a management command on a regular basis::
|
5. If you wish to exclude some days (eg, weekends) from escalation calculations, enter the dates manually via the Admin, or setup a cronjob to run a management command on a regular basis::
|
||||||
|
|
||||||
0 0 * * 0 /path/to/helpdesksite/manage.py create_escalation_exclusions --days saturday sunday
|
0 0 * * 0 /path/to/helpdesksite/manage.py create_escalation_exclusions --days saturday sunday
|
||||||
|
@ -33,9 +33,17 @@ class Command(BaseCommand):
|
|||||||
default=False,
|
default=False,
|
||||||
help='Display escalated tickets'
|
help='Display escalated tickets'
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
'-n',
|
||||||
|
'--notify-only',
|
||||||
|
action='store_true',
|
||||||
|
default=False,
|
||||||
|
help='Send email reminder but dont escalate tickets'
|
||||||
|
)
|
||||||
|
|
||||||
def handle(self, *args, **options):
|
def handle(self, *args, **options):
|
||||||
verbose = options['escalate_verbosely']
|
verbose = options['escalate_verbosely']
|
||||||
|
notify_only = options['notify_only']
|
||||||
|
|
||||||
queue_slugs = options['queues']
|
queue_slugs = options['queues']
|
||||||
# Only include queues with escalation configured
|
# Only include queues with escalation configured
|
||||||
@ -87,6 +95,7 @@ class Command(BaseCommand):
|
|||||||
if verbose:
|
if verbose:
|
||||||
self.stdout.write(f" - Esclating {ticket.ticket} from {ticket.priority + 1}>{ticket.priority}")
|
self.stdout.write(f" - Esclating {ticket.ticket} from {ticket.priority + 1}>{ticket.priority}")
|
||||||
|
|
||||||
|
if not notify_only:
|
||||||
followup = ticket.followup_set.create(
|
followup = ticket.followup_set.create(
|
||||||
title=_('Ticket Escalated'),
|
title=_('Ticket Escalated'),
|
||||||
public=True,
|
public=True,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user