feat(core): Add slash command link for linking items to tickets

ref: #296 #308
This commit is contained in:
2024-09-20 16:57:34 +09:30
parent c022551427
commit dfdc5bac9d
6 changed files with 183 additions and 2 deletions

View File

@ -49,7 +49,9 @@ All models must meet the following requirements:
This section details the additional items that may need to be done when adding a new model:
- If the model is a primary model, add to model reference rendering in `app/core/lib/markdown_plugins/model_reference.py` function `tag_html`
- If the model is a primary model, add it to model reference rendering in `app/core/lib/markdown_plugins/model_reference.py` function `tag_html`
- If the model is a primary model, add it to the model link slash command in `app/core/lib/slash_commands/linked_model.py` function `command_linked_model`
## History

View File

@ -13,6 +13,12 @@ The ticketing system within Centurion ERP is common to all ticket types. The dif
- Commenting
- Linked Items to ticket
- Milestone
- Project
- Related Tickets
- Slash commands
@ -47,6 +53,8 @@ Comment types are:
Slash commands are a quick action that is specified after a slash command. As the name implies, the command starts with a slash `/`. The following slash commands are available:
- Linked Item `link`
- Related `/blocked_by`, `/blocks` and `/relate`
- Time Spent `/spend`, `/spent`
@ -63,6 +71,17 @@ Slash commands are a quick action that is specified after a slash command. As th
summary: true
### Linked Items
::: app.core.lib.slash_commands.CommandLinkedModel
options:
inherited_members: false
members: []
show_bases: false
show_submodules: false
summary: true
### Related Tickets
::: app.core.lib.slash_commands.CommandRelatedTicket