Skip to content

Instantly share code, notes, and snippets.

@nitincodery
Created December 27, 2025 14:04
Show Gist options
  • Select an option

  • Save nitincodery/76ce9b684ba7f961710eb408f44b3654 to your computer and use it in GitHub Desktop.

Select an option

Save nitincodery/76ce9b684ba7f961710eb408f44b3654 to your computer and use it in GitHub Desktop.
Headcount
Headcount
archive -> Archived
Workflow*
ATS not linked*
Proposed*
send_for_approval -> Approval complete?
# only for admins
delete -> Deleted
In approval
approve -> Approval complete?
deny -> Denied
Approved
toggle_ready_to_hire -> Ready to hire
Ready to hire
link_job -> Hiring in progress
toggle_ready_to_hire -> Approved
Denied
resubmit -> Proposed
ATS linked
Hiring in progress
*_offer_detected -> In offer stage
link_offer -> In offer stage
unlink_job -> Ready to hire
on_hold -> On Hold
In offer stage
*_offer_accepted -> Hired
# auto unlink offer
*_offer_rejected -> Hiring in progress
unlink_offer -> Hiring in progress
Hired
*_detected_in_HRIS -> Closed
manually_link_employee -> Closed
unlink_offer -> Hiring in progress
Overall state
Archived
reopen -> Proposed
On Hold
restart -> Hiring in progress
Closed
Deleted
Approval complete?
no -> In approval
yes -> Approved
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment