How do I associate a custom function with a task workflow

How do I associate a custom function with a task workflow

Trying to set up the Milestone Autocomplete Custom Function. I think I have the parameters set, but the description includes this comment:

"Function has to be associated with task workflow which executes when the status field is updated."

What does that mean and how do I do it? I don't see any setting or help file that addresses this.