Description
User Story - Business Need
NOTE: Revised 03 FEB 2025 based on 1st attempt to work this ticket. See reverted PR here. Note that this PR transformed the ^
indicator for blockquotes into >
, this is not ideal because it is unexpected by clients when used outside of a blockquote.
Services would like to use a list in "personalisation" to be within a code/attention block. The use of lists in this way is not currently supported according to Portal usage, but we do have API support to allow a list passed in the request to become a bulleted list in the email. This feature was not 100% ready for services to use, this is to close the loop and make it Production ready.
- Ticket is understood, and QA has been contacted (if the ticket has a QA label).
User Story(ies)
As a service using VA Notify
I want to use a list to generated a bulleted list within a code block
So that I can simplify templates
Additional Info and Resources
Example template:
^ ##__ Submission details__
^
^ __Additional forms included__
^ ((forms_submitted))
^
^
forms_submitted
and files_submitted
should be within a code block but they are being excluded from the code block:
It appears the ^
is not being applied to each bullet point added.
For testing, use template ID, 86820037-1374-4072-9f9f-e74f235170a1
, "QA All The Formatting", in the DEV or PERF VANotify service. See that currently, when inserting a list into the personalisation field that is within a block quote, the list is rendered outside of that blockquote. Note that a bulleted list added directly to the blockquote does render the bulleted list within the blockquote directly as shown in the above screenshot, so this must be validated to ensure that it still works.
Acceptance Criteria
- Lists submit inside a code block (denoted with
^
) have the entire list inside a code block - Lists directly added to a blockquote continue to be rendered within the blockquote as expected.
- Update API docs (schema/swagger/postman) is this necessary?
- Notify Sam that this work is done so strike can prioritize their corresponding ticket in a future sprint
- This work is added to the sprint review slide deck (key win bullet point and demo slide)
- Inform this thread in our public channel (November 5th) that this work has been completed
QA Considerations
Permutations of code blocks and lists.
Out of Scope
Updating Portal documentation
Collaboration with Portal is happening in parallel and the documentation will be updated after this is functional in the API.
Activity