Mass Change Workflow State

Hi There, I’ve recently used workflow for one of my doctype but there are old records which are automatically placed on the first state.

Is there anyway to mass change the workflow state for all my old records to “Closed”?


From UI side, there is no provision for the mass update.
To do this you have to write code .