We have created an automatic rule to transition certain tickets when we complete the sprint. Here is a picture of the rule:

The idea is when a ticket is awaiting deployment and has the done label once the sprint is completed those tickets are transitioned to the "Done" status and staying in the completed sprint, any ticket in the completed sprint not meeting that criteria will move to the next sprint. The issue we ran into was it moved all tickets in the completed sprint to the "Done" (even the 6 not meeting the criteria) and moved all tickets from the completed sprint into the next one. Any help would be grateful.