Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8737549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:32:57+00:00 2026-06-13T10:32:57+00:00

We have a state in our defects called Need More Information. I would like

  • 0

We have a state in our defects called “Need More Information”. I would like to create a graph over time of how many defects are in that state at any particular period of time.

I think I can get the info to do that with the Lookback API with the following query:

my $find = {
    State                   => 'Need More Information',
    '_PreviousValues.State' =>  {'$ne' => 'Need More Information'},
    _TypeHierarchy          => -51006, # defect

    _ValidFrom  => {
        '$gte'  => '2012-09-01TZ',
        '$lt'   => '2012-10-23TZ',
    }

I thought that would give me back a list of all defect snapshots where the defect was transitioning into “Need More Information” state, but it does not (seems to list everything that was ever in “Need More Information” state.

Technically what I need is a query that lists snapshots of any defects transitioning either TO OR FROM the “Need More Information” state, but since this simpler one did not seem to work as I expected, I thought I would ask first why the query above did not work the way I expected.

The “Generated Query” in the header that comes back is:

    'fields' => 1,
    'skip' => 0,
    'limit' => 100,
    'find' => {
        '_TypeHierarchy' => -51006,
        '_ValidFrom' => {
            '$gte' => '2012-09-01T00:00:00.000Z',
            '$lt' => '2012-10-23T00:00:00.000Z'
        },
        '_PreviousValues.State' => {
            '$in' => [
                undef,
                5792599066,
                5792599067,
                5792599065,
                5792599070,
                5792599071,
                5792599068,
                5792599073,
                5792599072,
                5792599075,
                5792599077,
                5792599076,
                5792599078,
                3631859989,
                3631859988,
                3631859987,
                3631859986
            ]
        },
        'State' => {
            '$in' => [
                4384150044
            ]
        }
    }
};
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:32:59+00:00Added an answer on June 13, 2026 at 10:32 am

    I tried leveraging the $nin clause and had success with it. You might try adjusting your query to resemble something like this:

    find: {
            _Type: 'Defect',
            State: 'Need More Information',
            '_PreviousValues.State': {
                $in: [
                    'Submitted', 'Open', 'Fixed', 'Closed'
                ]
            },
        etc...
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have the folowing link: http://mvp.sos.state.ga.us/ Rather than create a db to replicate information
I have a production issue with In-Proc session state. Our application is base on
I have a state column in a dataframe and I want to create two
I have a need for a stateful webservice in our organization. However, everywhere I
First I have to state that I touched XSLT today for the first time
In our database we have a user. A user can have certain metadata (Like
We have a simple piece of code in our application: void tAccessPoint::OnStateChanged(QAbstractSocket::SocketState state) {
In our group, we have to model the state needs discussion for Bugzilla. Therefore,
I have recently moved our ASP.NET session state from InProc to a Sql Server
I have a situation where our unit tests take a long time to execute

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.