在未设定的解决日期过滤Daplo的JIRA问题

时间:2018-09-21 08:43:42

标签: .net rest jira jira-rest-api

我使用Dapplo连接到我们的JIRA服务器,以检索仪表板的一些信息。

我有当前请求:

List<Issue> issues = new List<Issue>();
int startAtIssue = 0;

IFinalClause search = Where.And(
                        Where.Project.Is(projectKey),
                        Where.Or(
                                Where.Created.AfterOrOn.DateTime(DateTime.Today.AddYears(-1)),
                                //Where.Resolved ==null???? <----------------------
                            )

SearchIssuesResult<Issue, JqlIssueSearch> searchIssuesResult;
string[] expand = includeChangelogs ? new[] {"changelog"} : new string[0];
do
{
    searchIssuesResult = Client.Issue.SearchAsync(search, 
                                                    int.MaxValue,
                                                    startAtIssue, 
                                                    new[] {JiraJql.ISSUE_FIELD_CREATED, JiraJql.ISSUE_REQUEST_TYPE, JiraJql.ISSUE_FIELD_DUEDATE},
                                                    expand)
        .Result;
    issues.AddRange(searchIssuesResult.Issues);
    startAtIssue = issues.Count;
} while (!searchIssuesResult.IsLastPage);

Where.Resolve上,我只能设置AfterOrOn,Before,...不能设置为“ NotSet”或为null,或者...

如何设置未设置解决日期的地方?

0 个答案:

没有答案