IReadOnlyCollection <Ticket> GetAllTickets(string labelName, bool open) { var openClosed = open ? WellKnownValue.Open : WellKnownValue.Closed; var listRequest = new TicketListRequest { SearchModel = new Search { CriteriaRoot = new CriteriaRoot { Criteria = new [] { Criterion.FromElementPredicateAndConstantValue(ElementName.Label, PredicateName.Equals, labelName), Criterion.FromElementPredicateAndConstantValue(ElementName.Ticket, PredicateName.Is, openClosed) } } } }; return(ticketLister.GetTickets(listRequest)); }
public IReadOnlyList <Ticket> GetTickets(string agiilQueryString) { var request = GetRequest(agiilQueryString); return(lister.GetTickets(request)); }