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 + C
and click Entity - Set
Name
to: Ticket Comment - Set
Create Display Attribute
to: 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 Name
to: Message - Set
Type
to: Rich-text Markdown - Set
Attribute Name
to: Created By - Set
Type
to: User - Set
Attribute Name
to: Created Date - Set
Type
to: 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 + Q
to activate the Search feature in the topbar. Type Ticket. (Alternatively, go to Data > Entities) - In the Data Definition section, click
Add New Reference
- Set
Reference Type
to: Composition - Set
Target
to: 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 entity
is set to: TicketComment - Set
Title
to: Comments - Set
Text Attribute
to: Message - Set
Creator Attribute
to: CreatedBy - Set
Created Attribute
to: CreatedDate - Set
Parent Entity Reference
to: Ticket - Click
OK
- Click
OK
- Save changes:
Ctrl + S