Journey Academy · 4 / 5
Show extra help only when needed
Use a typed condition to show urgent-handoff guidance without blocking ordinary completion.
YOUR TASK
Make this happen
Add an urgent toggle and a conditional attention stage. Use $.state.urgent with boolean comparison to true, leaving finish unconditional.
Keep the working capabilities from the previous lesson and connect the new pieces to the same solution.
Check the complete solution, then inspect any unmet requirements.
This step starts with the earlier solution and one new challenge. Each lesson keeps its own draft.
Read the starter files
main.cococo
journey_document "handoff" {
id = "job-handoff"
title = "Job handoff"
icon = "job"
estimatedMinutes = 3
summary = "Prepare a clear handoff for the next operator."
inputs = [journey_input.job]
steps = [journey_info.start, journey_form.details, journey_done.finish]
}
stages.cococo
journey_info "start" {
kind = "info"
id = "start"
title = "Before you hand over"
body = "Check the current job and prepare your handoff notes."
checklist = ["Know which job you are handing over."]
}
journey_done "finish" {
kind = "done"
id = "finish"
title = "Handoff prepared"
body = "Prepared by {{ $.state.operator }}: {{ $.state.notes }}"
}
answers.cococo
journey_field "operator" {
key = "operator"
kind = "text"
label = "Your name"
required = true
}
journey_field "notes" {
key = "notes"
kind = "multiline"
label = "Handoff notes"
required = true
}
journey_form "details" {
kind = "form"
id = "details"
title = "Prepare the handoff"
fields = [journey_field.operator, journey_field.notes]
}
context.cococo
journey_input "job" {
key = "job"
kind = "resource"
resourceType = "job"
label = "Job to hand over"
required = true
}
conditions.cococo
journey_eq "urgent" {
kind = "eq"
# TODO: add path — see the task above.
type = "boolean"
# TODO: add value — see the task above.
}
journey_when "urgent" {
# TODO: add conditions — see the task above.
}
journey_info "attention" {
kind = "info"
id = "attention"
# TODO: add title — see the task above.
# Supplied body: "Contact the next operator now; the handoff note is not an alert."
# TODO: assign body using the value above.
# TODO: add condition — see the task above.
}
Supplied supporting files
Reference: journeys · getting-startedjourneys · bindingsjourneys · formsjourneys · schema-formsjourneys · conditionsjourneys · completionjourneys · go-live