Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to query feature by state #19

Closed
fredrickgu opened this issue Jul 28, 2016 · 2 comments
Closed

Unable to query feature by state #19

fredrickgu opened this issue Jul 28, 2016 · 2 comments

Comments

@fredrickgu
Copy link

fredrickgu commented Jul 28, 2016

Hello, thanks for developing this node library, right now I am using it for query features for our project management, but I can't query feature by a specific state:

restApi.query({
    type : 'portfolioitem/feature',
    fetch : ['FormattedID','ObjectID','State','Owner','Release','Name'],
    start : 1,
    limit : 200,
    query : queryUtils.where('State', '!=', 'Done'),
    scope : {
        workspace : "/workspace/...",
        project : "/project/...",
        up : false,
        down : true
    },
    requestOptions : {}
}).then(function (result) {}).fail(function(error){});

I tried other query condition like 'Name', 'LeafStoryCount', they all work, except State, it might not be a issue, but do you know what is the correct way of querying by feature state? thanks a lot!

@fredrickgu
Copy link
Author

I found the solution, the query should be
queryUtils.where('State.Name', '!=', 'Done'),

@krmorse
Copy link
Contributor

krmorse commented Jul 29, 2016

Cool, glad you figured it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants