The problem is when I click on a specific ticket that clicked ticket’s id is not retrieved. However, when I click on any ticket, the ID of the first ticket from the list is retrieved. like i want that id that displayed in the window.
I have attached screenshots to provide more context and to help you understand the issue better.
I replied to you in the chat but also posting the issue with the code you wrote:
Based on the code screenshot, you are getting 1507 because that’s the recent ticket from your fetchAllTickets function’s response that is on top.
You cannot fetch the open ticket using the code you shared. What you’re doing in your code screenshot is getting all tickets and printing the first ticket from there which is not related to your requirement of getting current open ticket. You have to start with creating an app using fdk and then use the code suggested to get the current open ticket.
To get the open ticket, I would recommend using the following snippet like how @Mattia_Piparo pointed out in their response: