Components - Comments
Establish a Message Board for Each Support Ticket
Multiple people may work on a support issue and users may want to add comments to the tickets. This feature will add an area for communication on the Ticket Detail page.
1. Create Ticket Comment entity
- Press
Ctrl + Shift + Cand click Entity - Set
Nameto: Ticket Comment - Set
Create Display Attributeto: Comment - Click
Next - In
Create Pages, remove all of the pages - Click
Finish
2. Add Attributes to the Ticket Comment entity
- In the Data Definition > Attributes section, click
Add New Attribute - Set
Attribute Nameto: Message - Set
Typeto: Rich-text Markdown - Set
Attribute Nameto: Created By - Set
Typeto: User - Set
Attribute Nameto: Created Date - Set
Typeto: DateTime - Click
Create Attributes
— - In the Attributes section, click
Created Date - Mark
Default Value. Set the text to:(comment, db, ctx) => DateTime.Now - Click
OK - Click
OK - Save changes: Ctrl + S
3. Create Composition Reference on the Ticket
- Type
Ctrl + Qto activate the Search feature in the top bar. Type Ticket. (Alternatively, go to Data > Entities) - In the Data Definition section, click
Add New Reference - Set
Reference Typeto: Composition - Set
Targetto: Ticket Comment - Click
Create References - Save changes:
Ctrl + S
4. Add Comment Components
- Click Ctrl + Q. Type Ticket Detail. Press
Enter(if necessary). Click the Ticket Detail entity page. (Alternatively, go to UI > Entity Pages) - In the Layout section, click
Add View - Click
OK - In the sidebar of the Layout dialog box, go to Advanced Components and click
Comments - Click
Configure comments - Verify that
Item entityis set to: TicketComment - Set
Titleto: Comments - Set
Text Attributeto: Message - Set
Creator Attributeto: CreatedBy - Set
Created Attributeto: CreatedDate - Set
Parent Entity Referenceto: Ticket - Click
OK - Click
OK - Save changes:
Ctrl + S