How to create actions where i can see the tickets which i was created

i want to see my tickets which i was created or just saved so what should i do in the actions

for assigned tickets it was like this
self.assignedToUser = :_user

can you just help me in this


To view the tickets you have created it will be self.createdBy = :_user
& To view the tickets which are lastly saved by you it will be self.updatedBy = :_user

Thank you