Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.

Add custom "predicates" #22

Open
adrianoc opened this issue Mar 24, 2011 · 0 comments
Open

Add custom "predicates" #22

adrianoc opened this issue Mar 24, 2011 · 0 comments

Comments

@adrianoc
Copy link
Owner

$jira search :filter-name:

$jira search :filter-name: { $issue.Assignee == 'adriano' }

$issue => RemoteIssueFacade: a proxy that just routs calls to RemoteIssue if the member being accessed is not a custom field or map/resolve the member otherwise; for instance, while Assignee is a RemoteIssue field
                             Labels would me resolved to some internal class (lets say IssueLabels) that would receive RemoteIssue.customFields[ labels.id ] as an argument)

$jira search :filter-name: { $issue.Labels.Contains('tbv') } | assign unhappy-dev

Processing:

$jira search :filter-name: { $issue.Assignee == 'adriano' }

    - Run in a low privileged app domain (no i/o access for instance) ?

    - Emit a method that expects a RemoteIssueFacade as an argument:
        public static bool Predicate(RemoteIssueFacade issue)
        {
            return issue.Assignee == "adriano";
        }

    - run each issue returned by the filter against this predicate and pipe / return the ones that returned true
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant