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()));
 }
Esempio n. 3
0
 public WorklogQuery(IJiraWebClient jiraWebClient, string boardId)
 {
     _client  = jiraWebClient ?? throw new ArgumentNullException(nameof(jiraWebClient));
     _boardId = boardId;
 }
Esempio n. 4
0
 public WorkLogControllerV2(IWorkLogQuery workLogQuery, IJiraWebClient webClient)
 {
     _workLogQuery = workLogQuery ?? throw new ArgumentNullException(nameof(workLogQuery));
     _client       = webClient ?? throw new ArgumentNullException(nameof(webClient));
 }
Esempio n. 5
0
 public UserQuery(IJiraWebClient jiraWebClient)
 {
     _client = jiraWebClient ?? throw new ArgumentNullException(nameof(jiraWebClient));
 }