# List of tickets not getting

**URL:** <https://community.sendbird.com/t/list-of-tickets-not-getting/9573>\
**Category:** React Native\
**Tags:** react-js, desk\
**Created:** [May 24, 2024, 5:07pm UTC](https://community.sendbird.com/t/list-of-tickets-not-getting/9573 "2024-05-24T17:07:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dasimems](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/dasimems/32/5211_2.png) [@dasimems](https://community.sendbird.com/u/dasimems)\
**Post date:** [May 24, 2024, 5:07pm UTC](https://community.sendbird.com/t/list-of-tickets-not-getting/9573/1 "2024-05-24T17:07:36Z")

</div>

**[Problem/Question]**  
// Detailed description of issue.  
I am having problem fetching the ticket list when i call the function of

Ticket.getAllTickets

* * *

// If problem, please fill out the below. If question, please delete.  
**[4.12.4]**  
// What version of the SDK are you using?

**[Reproduction Steps]**  
// Please provide reproduction steps and, if possible, code snippets.

Ticket.getAllTickets(10, (tickets, error) =\> {  
if (error) {  
// Handle error.  
console.log(error);  
return;  
}  
setTicketList(tickets);  
console.log(“ticketList”, tickets);  
// offset += tickets.length; for the next tickets.  
// Implement your code to display the ticket list.  
});

**[Frequency]**  
// How frequently is this issue occurring?

**[Current impact]**  
// How is this currently impacting your implementation?

---

<div class="post-metadata">

**Author:** ![Chinmaya\_Gupta](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/chinmaya_gupta/32/1021_2.png) [@Chinmaya\_Gupta](https://community.sendbird.com/u/Chinmaya_Gupta)\
**Post date:** [May 28, 2024, 7:42am UTC](https://community.sendbird.com/t/list-of-tickets-not-getting/9573/2 "2024-05-28T07:42:24Z")

</div>

Hello @dasimems

What is the issue you are facing when you try to use getAllTickets? Are you receiving any errors?

**Note** : To use the `getAllTickets` method, the Desk JavaScript SDK version should be 1.0.21 or higher.

Please refer: [Ticket | Desk JavaScript SDK | Sendbird Docs](https://sendbird.com/docs/desk/sdk/v1/javascript/features/ticket#1-ticket)

---

<div class="post-metadata">

**Author:** ![dasimems](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/dasimems/32/5211_2.png) [@dasimems](https://community.sendbird.com/u/dasimems)\
**Post date:** [May 30, 2024, 7:39am UTC](https://community.sendbird.com/t/list-of-tickets-not-getting/9573/3 "2024-05-30T07:39:12Z")

</div>

hi

Here is the version i’m using  
“sendbird”: “^3.1.33”,  
“sendbird-desk”: “1.0.21”,

The problem i’m facing is, when i create a ticket and i send a message to that ticket, on my dashboard, i would have the pending ticket, just like a have 3 pending ticket right now. Trying to get all ticket now, it returning an empty array which is not suppose to be. I also observe on my network tab that, everytime you try the getAllTickets, it hit two request, one for the ticket and the other for groups. Ca

Thanks
