# Loop through all tickets

**URL:** <https://forum.sambapos.com/t/loop-through-all-tickets/2019>\
**Category:** V4 Question\
**Created:** [August 6, 2014, 10:41pm UTC](https://forum.sambapos.com/t/loop-through-all-tickets/2019 "2014-08-06T22:41:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [August 6, 2014, 10:58pm UTC](https://forum.sambapos.com/t/loop-through-all-tickets/2019/2 "2014-08-06T22:58:47Z")

</div>

Ticket lister widget can display only unpaid tickets and send all selected ticket’s Id’s to an automation command as command value. You need to enable multi selection on ticket lister widget and define a command in command list. Ticket lister will show a button for that command and you can pass command value to a value looper. In value looped rule you need to load ticket by id, modify ticket and close it.

If you have a lot of tickets you can define a command line as `Select All`. That will not mapped to a command but will select all tickets displayed in ticket lister.

We’ve previously talked about it here

> [@Pre Order Tickets](http://forum.sambapos.com/t/pre-order-tickets/459/9):
>
> Hello @JohnS, I’ve prepared a test release for you. I’ll be happy if you can let me know if it works fine or not. [Only for testing. Don’t use it on production. Click here to download.](http://sambapos.com/?wpfb_dl=9) \*\* Uninstall Previous version. ###What is changed? Commands setting added to Ticket Lister Widget Settings. You can enter one automation command name per row and each row displayed as a command button. When you click a button it executes automation command and sets selected ticket ids (comma separated) a…

This post may also help

> [@\[HOWTO\] Ticket Lister Widget --\> Display Ticket](http://forum.sambapos.com/t/howto-ticket-lister-widget-display-ticket/1083/14):
>
> slight_smile It seems there is a misunderstanding about Ticket No. What display ticket action works with is Ticket Id. Ticket Id is the unique number auto generated by sambapos and you can access it with {TICKET ID} tag. What we need is that number. {TICKET NO} is the number generated with numerators and we have nothing to do with that. What Ticket lister automatically passes is not Ticket No. It is Ticket Id. So I’ll write step by step configuration once more to test if it works fine or not. …

---

_[View the full topic](https://forum.sambapos.com/t/loop-through-all-tickets/2019)._
