internal static async Task <IEnumerable <JiraWorkLogDto> > GetWorkLoads(this IJiraWebClient jiraWebClient, IEnumerable <JiraIssueDto> issues) { IEnumerable <Task <List <JiraWorkLogDto> > > workLoadsTasks = issues.Select(x => jiraWebClient.GetWorkLogs(x.Id)); List <JiraWorkLogDto>[] workloadsArray = await Task.WhenAll(workLoadsTasks); return(workloadsArray.FlatMap()); }
internal static Task <List <JiraIssueDto> > GetIssues(this IJiraWebClient client, IIssueFilter searchParamsDto, IEnumerable <SprintDto> sprints) { return(client.GetIssues(searchParamsDto.IssueState, searchParamsDto.NotIssueState, searchParamsDto.IssueAssignee, sprints.Select(x => x.Id).ToArray())); }
public WorklogQuery(IJiraWebClient jiraWebClient, string boardId) { _client = jiraWebClient ?? throw new ArgumentNullException(nameof(jiraWebClient)); _boardId = boardId; }
public WorkLogControllerV2(IWorkLogQuery workLogQuery, IJiraWebClient webClient) { _workLogQuery = workLogQuery ?? throw new ArgumentNullException(nameof(workLogQuery)); _client = webClient ?? throw new ArgumentNullException(nameof(webClient)); }
public UserQuery(IJiraWebClient jiraWebClient) { _client = jiraWebClient ?? throw new ArgumentNullException(nameof(jiraWebClient)); }