There are a couple goals that are obvious, although nobody knows what Ukrainian leadership was thinking.
1) Make Russia pull back troops from Donbas theater. This failed.
2) Take POWs for exchange fund. This was a success.
3) Take Russian land to discourage "freezing frontlines" peace talks. This was a success.
Rumour has it they also managed to get some Russian train system intel that helped them bomb the big ammo depots.