Updated: 2022-02-03
You can use workflow items in conditions in templates. To copy the IDs from the workflow screen:
You can use these IDs in the following functions.
Function | Example |
---|---|
istaskcomplete |
This text will show if the Planning task is complete.
|
isnottaskcomplete |
This text will show if the Planning task is not complete.
|
taskcompleted |
Planning was complete on the following date |
tasktitle |
|
{{# istaskcomplete(CurrentClient, "Planning") }}
This will show if the planning item is complete. {{ tasktitle(CurrentClient, "Planning") }}
completed on {{ format(taskcompleted(CurrentClient, "Planning"), "January 2, 2003") }}
.
{{/ istaskcomplete(CurrentClient, "Planning") }}
By opening by placing the following items within the task() function and calling the task’s workflow ID, you can get use the details of the task in templates.
Use any of the elements in the following table between tags with the task() function to show details of the task in a template. For example
{{#CurrentClient}}
{{# task("MailedReturnToClient") }}
{{Summary}}
{{/ task}}
{{#CurrentClient}}
To use the above example in your own code, replace the MailedReturnToClient with any workflow ID and {{Summary}}
with any code from the table below.
Code | Description | Sample result |
---|---|---|
{{ Title }} |
Title of the workflow item. | Engagement letter signed and on file |
{{ Subtitle }} |
Subtitle of the workflow item (if available). Depending on the task, this could be a tracking number or transmission confirmation number, etc. | n/a |
{{ InProgressSummary }} |
Display a summary of what shows when the task is not yet complete. | Waiting to receive engagement letter |
{{ Summary }} |
Display the summary of the task when complete. | Engagement received by Elizabeth on 2018-08-10 |
{{ ShortSummary }} |
Display the short summary of the task when complete. | Signed engagement letter received |
{{ IsCompleted }} |
Check whether the task is complete. | True or False |
{{ IsNotCompleted }} |
Check whether the task is not complete. | True or False |
{{ CompletionDate }} |
Display the date when the task was completed. | 2018-08-10 3:24:36 PM |
{{ TargetCompletionDate }} |
Display the expected completion date for the task. Currently only applies to the CompletionDate workflow ID in the Due date task. | 2018-08-10 3:24:36 PM |
{{ IsOverdue }} |
Check whether the task is past due based on the completion date. Currently only applies to theCompletionDate workflow ID in the Due date task. | True or False |
{{ UserName }} |
Display the username of the person who completed the task. | Elizabeth |
{{ HasComments }} |
Check whether there are any comments on the task. | True or False |
{{ Comments }} |
Display the comments associated with the task. | n/a |
{{ IsVisible }} |
Check whether this task is visible based on the Show check box in options. | True or False |
{{ IsOptional }} |
Check whether this task is optional based on the Required check box in options. | True or False |
{{ IsRelevant }} |
Check whether this task is relevant based on the content in the return. For example, is there a T1135 required? If so, the T1135 tasks display. | True or False |
{{ IsOverridden }} |
Check whether an automatic task is manually overridden in the client’s return. | True or False |
{{ TrackingNumber }} |
Display the tracking number for the task. Currently only applies to the TrackingNumber workflow ID. Must be surrounded by {{# task("CourieredReturnToClient")}} {{/task}} to work. |
1234577 |
For any of the True or False task details, you can show or hide text based on that test. For example:
Example |
---|
{{# CurrentClient }} {{# task("EngagementLetter") }} {{# IsCompleted }} Show this text if the task is complete.{{/ IsCompleted }} {{# not(IsCompleted) }} Show this text if the task is not complete.{{/ not(IsCompleted) }} {{/ task }} {{/ CurrentClient}} |
You can format dates outputted by these task details. See the Dates help topic for more examples.
Example | Result |
---|---|
{{# CurrentClient }} {{# task("EngagementLetter") }} {{ CompletionDate }} {{ format(CompletionDate) }} {{/ task }} {{/ CurrentClient }} |
2019-01-23 3:02:00 PM January 23, 2019 |