How can I change the status of my opportunity when the sales stage is changed?

There's no predefined mechanism in the application to automatically change the status of an opportunity when a sales stage is changed. If the status of your opportunity changes to Won, then the expected behavior for the sales stage in the sales method moves to the last number in the Order column.

However, you can create a Groovy script similar to the following to change the status of your opportunity based on a sales stage.

//Change the opportunity status based on sales stage (no matter what the sales stage is)

def stageId = null
def salesStageVO = null
def foundRows = null
def voRow = null
def salesStageStatus = null
def curOptyStatus = getAttribute('StatusCode')
 
stageId = getAttribute('SalesStageId')
salesStageVO = newView('SalesStageVO')
foundRows = salesStageVO.findByKey(key(stageId),1)
if (foundRows.size() == 1)
{
  voRow = foundRows[0]
  salesStageStatus = voRow.getAttribute('StageStatusCd')
}
if (salesStageStatus != null && curOptyStatus != salesStageStatus)
{
  setAttribute('StatusCode', salesStageStatus)
}