In the task details window, hover the mouse over the task title and click the edit button when it appears. Edit the title and click to save, or click or outside the title edit area to cancel editing.
Users will need view and edit permissions for the task to perform this action. Depending on the user's project permissions, they may be able to view and edit all project tasks or just a subset. Watchers specifically added to the task will be able to view it.