@jayashree,
Best way would be using HTTP Request activity and comparing it by API
HTTP Request - Authenticate
Use Deserialize Json and store it to a JObject - get the auth token
In another HTTP Request use the following,
EndPoint - https://URL/odata/QueueItems?$ filter = QueueDefinitionID eq ‘your queueId’ and Status eq Uipath.Core.Model.Queues.ProcessingStatus%27New%27
Method - GET
Add auth token in headers
Result - String Variable
Use Deserialize Json and store it to a JObject
Use Linq query to get only ticketno and store it to a StringArray first element - latest added (From item in JobjectVariable("value") Select Convert.ToString(item("SpecificContent")("Ticketno"))).ToArray()