Post an event to a feed when a task is created

How would I Post an Event to a Feed when A task is created that would then link to that task

Second one as well as do the same thing when a task's assignee changes for example when someone accepts a task or assigns it to someone else or releases back to the team?

I understand how to Post an Event, just not how to do it once a task has started or changed

OriginalPostID-138167

OriginalPostID-138167

  Discussion posts and replies are publicly visible