コード例 #1
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Relation("Asset", RelatedAsset);
            builder.Relation("CreatedBy", Sender);

            foreach (Member member in Recipient)
            {
                builder.Root.And(new TokenTerm(string.Format("Message.Receipts[Recipient='{0}';IsDeleted='false']", member.ID.Token)));
            }

            // Because we are masking the Message-Receipt relation from the user,
            // and we will only ever get messages where I am the recipient or creator,
            // We filter Read and Unread by the receipts, assuming only one.
            if (IsUnread.HasValue)
            {
                builder.Simple("Receipts.IsUnread", IsUnread.Value);
            }

            if (IsArchived.HasValue)
            {
                builder.Simple("Receipts.IsArchived", IsArchived.Value);
            }
        }
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Relation("Message", Message);
            builder.Relation("Recipient", Recipient);
        }
コード例 #3
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Relation("RegressionSuite", RegressionSuite);
            builder.Relation("Environment", Environment);
        }
コード例 #4
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Relation("Parent", Parent);
            builder.Relation("TestSuite", TestSuite);

            builder.MultiRelation("Targets", Targets);
        }
コード例 #5
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("Date", Date);

            builder.Relation("Timebox", Iteration);
            builder.Relation("FacilitatedBy", FacilitatedBy);
            builder.Relation("Team", Team);
        }
コード例 #6
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Relation("Author", Author);
            builder.Comparison("AuthoredAt", AuthoredAt);
            builder.Relation("BelongsTo", BelongsTo);
            builder.Relation("InReplyTo", InReplyTo);
            builder.MultiRelation("Replies", Replies);
            builder.MultiRelation("Mentions", Mentions);
        }
コード例 #7
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("Reference", References);

            builder.Relation("BuildProject", BuildProjects);
            builder.Relation("ChangeSets", ChangeSets);

            builder.ListRelation <BuildSource>("Source", Source);
            builder.ListRelation <BuildStatus>("Status", Status);
        }
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("Number", DisplayID);
            builder.Simple("Reference", Reference);

            builder.Comparison("Estimate", Estimate);

            builder.Relation("Owner", Owners);
            builder.Relation("RegressionPlan", RegressionPlan);
        }
コード例 #9
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Relation("Workitem", Workitem);
            builder.Relation("Scope", Project);
            builder.Relation("Member", Member);
            builder.Relation("Timebox", Iteration);
            builder.Relation("Team", Team);

            builder.Comparison("Date", Date);
            builder.Comparison("Value", Value);
        }
コード例 #10
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Relation("Owner", Owner);
            builder.Relation("Team", Team);

            builder.MultiRelation("Retrospectives", Retrospective);

            builder.ListRelation <IssueType>("Category", Type);
            builder.ListRelation <IssuePriority>("Priority", Priority);
            builder.ListRelation <IssueResolutionReason>("ResolutionReason", ResolutionReason);
        }
コード例 #11
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Relation("PersonalTo", new Member[] { null, builder.Instance.LoggedInMember });

            builder.Simple("Name", Name);
            builder.Simple("Content", Content);

            builder.Relation("Asset", Asset);
            builder.Relation("InResponseTo", InResponseTo);

            builder.ListRelation <NoteType>("Category", Type);
        }
コード例 #12
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("RequestedBy", RequestedBy);
            builder.Simple("LastVersion", Build);
            builder.Relation("Customer", Customer);
            builder.Relation("Dependencies", DependsOnStories);
            builder.Relation("IdentifiedIn", IdentifiedIn);

            builder.MultiRelation("Dependants", DependentStories);

            builder.ListRelation <WorkitemRisk>("Risk", Risk);
            builder.ListRelation <StoryType>("Category", Type);
        }
コード例 #13
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Relation("Owner", Owners);
            builder.Simple("Reference", Reference);
        }
コード例 #14
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Relation("Scope", Project);
            builder.Simple("Number", DisplayID);
        }
コード例 #15
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Relation("Parent", Parent);
            builder.Relation("Customer", Customer);
            builder.Relation("Theme", Theme);

            builder.MultiRelation("Goals", Goals);
            builder.MultiRelation("Owners", Owners);

            builder.ListRelation <ThemeStatus>("Status", Status);
            builder.ListRelation <ThemeSource>("Source", Source);
            builder.ListRelation <WorkitemRisk>("Risk", Risk);
            builder.ListRelation <ThemeType>("Category", Type);
            builder.ListRelation <WorkitemPriority>("Priority", Priority);
        }
コード例 #16
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.ListRelation <TestType>("Category", Type);
            builder.ListRelation <TestStatus>("Status", Status);
            builder.Relation("Parent", Epic);
        }
コード例 #17
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("Name", Name);
            builder.Simple("URL", URL);

            builder.Relation("Asset", Asset);
        }
コード例 #18
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("Name", Name);
            builder.Simple("Description", Description);

            builder.Relation("Asset", Asset);

            builder.ListRelation <AttachmentType>("Category", Type);
        }
コード例 #19
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Comparison("Estimate", Estimate);

            builder.Relation("Team", Team);
            builder.Relation("Parent", Theme);
            builder.Relation("Timebox", Iteration);

            builder.Relation("Super", Epic);

            builder.ListRelation <WorkitemStatus>("Status", Status);
            builder.ListRelation <WorkitemSource>("Source", Source);
            builder.ListRelation <WorkitemPriority>("Priority", Priority);

            builder.MultiRelation("Goals", Goals);
            builder.MultiRelation("Requests", Requests);
            builder.MultiRelation("Issues", Issues);
            builder.MultiRelation("BlockingIssues", BlockingIssues);
            builder.MultiRelation("AffectedByDefects", AffectedByDefects);
            builder.MultiRelation("CompletedInBuildRuns", CompletedIn);
        }
コード例 #20
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("Reference", Reference);

            builder.Comparison("Risk", Risk);
            builder.Comparison("Swag", Swag);
            builder.Comparison("Value", Value);

            builder.Relation("Parent", Theme);
            builder.Relation("Super", Parent);

            builder.MultiRelation("Goals", Goals);
            builder.MultiRelation("Issues", Issues);
            builder.MultiRelation("BlockingIssues", BlockingIssues);
            builder.MultiRelation("Owners", Owners);
            builder.MultiRelation("Requests", Requests);

            builder.ListRelation <EpicStatus>("Status", Status);
            builder.ListRelation <WorkitemSource>("Source", Source);
            builder.ListRelation <EpicType>("Category", Type);
            builder.ListRelation <EpicPriority>("Priority", Priority);
        }
コード例 #21
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("Tags", Tags);
            builder.Simple("Reference", Reference);

            builder.Relation("GeneratedFrom", GeneratedFrom);

            builder.MultiRelation("RegressionSuites", RegressionSuites);
            builder.MultiRelation("Owners", Owners);
            builder.MultiRelation("GeneratedTests", GeneratedTests);

            builder.ListRelation <RegressionTestStatus>("Status", Status);
            builder.ListRelation <TestType>("Category", Type);
        }
コード例 #22
0
        private void CreateMultipleScopeFilter(FilterBuilder builder)
        {
            builder.Relation("Scope", projects);

            var metaModel = builder.Instance.ApiClient.MetaModel;
            var epicType  = metaModel.GetAssetType("Epic");

            var scopeAttribute = epicType.GetAttributeDefinition("Scope");
            var scopeTerm      = new FilterTerm(scopeAttribute);

            scopeTerm.Operate(FilterTerm.Operator.Equal, projects.Select(x => x.ToString()).Cast <object>().ToArray());
            var superAndUpAttribute = epicType.GetAttributeDefinition("SuperAndUp").Filter(scopeTerm);

            var superAndUpTerm = builder.Root.Term(superAndUpAttribute);

            superAndUpTerm.NotExists();
        }
コード例 #23
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("RequestedBy", RequestedBy);
            builder.Simple("Reference", Reference);

            builder.Relation("Owner", Owner);

            builder.MultiRelation("Issues", Issues);

            builder.ListRelation <WorkitemSource>("Source", Source);
            builder.ListRelation <RequestType>("Category", Type);
            builder.ListRelation <RequestStatus>("Status", Status);
            builder.ListRelation <RequestPriority>("Priority", Priority);
            builder.ListRelation <RequestResolution>("ResolutionReason", ResolutionReason);
        }
コード例 #24
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("FoundBy", FoundBy);
            builder.Simple("FoundInBuild", FoundInBuild);
            builder.Simple("FoundInVersion", FoundInVersion);
            builder.Simple("Environment", Environment);
            builder.Simple("FixedInBuild", ResolvedInBuild);

            builder.Relation("VerifiedBy", VerifiedBy);

            builder.MultiRelation("AffectedPrimaryWorkitems", AffectedPrimaryWorkitems);
            builder.MultiRelation("FoundInBuildRuns", FoundIn);

            builder.ListRelation <DefectType>("Type", Type);
            builder.ListRelation <DefectResolutionReason>("ResolutionReason", ResolutionReason);
        }
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Relation("Parent", Parent);
        }
コード例 #26
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Relation("Schedule", Schedule);
        }