Esempio n. 1
0
        public async Task <Option <string> > LoadAccountId(string username)
        {
            var request = JiraAccountRestCall.Create(username);
            var res     = await _restClient.ExecuteAsync(request);

            return(res.Map(e => e.FirstOrDefault()).Map(e => e.AccountId));
        }
Esempio n. 2
0
        public Task <Option <JiraIssueJqlResponse <T> > > Jql <T>(string jql, T?_ = null) where T : class
        {
            var request = JiraIssueJqlSearch <T> .FromType(jql);

            return(_restClient.ExecuteAsync(request));
        }