public void updateModelWithSprint(JiraIssueListModel model, JiraServer server, Sprint sprint)
        {
            var keys = facade.getIssueKeysForSprint(server, sprint);

            if (keys == null || keys.Count == 0)
            {
                return;
            }

            JiraFilter f = new JqlFilter(keys);

            var issues = facade.getCustomFilterIssues(server, f, model.Issues.Count, GlobalSettings.JiraIssuesBatch);

            lock (this) {
                model.addIssues(issues);
            }
        }
        public void rebuildModelWithSprint(JiraIssueListModel model, JiraServer server, Sprint sprint)
        {
            var keys = facade.getIssueKeysForSprint(server, sprint);

            if (keys == null || keys.Count == 0)
            {
                lock (this) {
                    model.clear(true);
                    return;
                }
            }
            JiraFilter f = new JqlFilter(keys);

            var issues = facade.getCustomFilterIssues(server, f, 0, GlobalSettings.JiraIssuesBatch);

            lock (this) {
                model.clear(false);
                model.addIssues(issues);
            }
        }