Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link directly to dispatch #3844

Merged
merged 2 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/dispatch/case/messaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
CASE_TRIAGE_REMINDER,
MessageType,
)
from dispatch.config import DISPATCH_UI_URL
from dispatch.plugin import service as plugin_service


Expand All @@ -36,7 +37,7 @@ def send_case_close_reminder(case: Case, db_session: SessionLocal):
items = [
{
"name": case.name,
"ticket_weblink": case.ticket.weblink,
"dispatch_ui_case_url": f"{DISPATCH_UI_URL}/{case.project.organization.name}/cases/{case.name}", # noqa
"title": case.title,
"status": case.status,
}
Expand Down Expand Up @@ -70,9 +71,9 @@ def send_case_triage_reminder(case: Case, db_session: SessionLocal):
items = [
{
"name": case.name,
"ticket_weblink": case.ticket.weblink,
"title": case.title,
"status": case.status,
"dispatch_ui_case_url": f"{DISPATCH_UI_URL}/{case.project.organization.name}/cases/{case.name}", # noqa
}
]

Expand Down
4 changes: 2 additions & 2 deletions src/dispatch/messaging/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ class MessageType(DispatchEnum):
CASE_CLOSE_REMINDER = [
{
"title": "{{name}} Case - Close Reminder",
"title_link": "{{ticket_weblink}}",
"title_link": "{{dispatch_ui_case_url}}",
"text": CASE_CLOSE_REMINDER_DESCRIPTION,
},
CASE_TITLE,
Expand All @@ -637,7 +637,7 @@ class MessageType(DispatchEnum):
CASE_TRIAGE_REMINDER = [
{
"title": "{{name}} Case - Triage Reminder",
"title_link": "{{ticket_weblink}}",
"title_link": "{{dispatch_ui_case_url}}",
"text": CASE_TRIAGE_REMINDER_DESCRIPTION,
},
CASE_TITLE,
Expand Down