Giter Site home page Giter Site logo

Comments (7)

orlando-noda avatar orlando-noda commented on June 9, 2024 1

Hi, @jenniferrosemitchell21! I had to edit the query of every table and add a filter parameter to limit my query to a specific areaPath. Here is an example of a table called "WorkItems Bl0cked"

Edited Query

= OData.Feed(#"Http/Https" & "://" & #"Analytics URL/Azure DevOps Server" & "/" & Organization & "/" & Project & "/_odata/v3.0-preview/WorkItemRevisions?" & "$apply=filter(" & "StateCategory ne 'Proposed'" & "and startswith(Area/AreaPath,'Systems\Opportunity')" & "and WorkItemType ne 'Issue'" & "and WorkItemType ne 'Task'" & "and WorkItemType ne 'Test Case'" & "and WorkItemType ne 'Test Plan'" & "and WorkItemType ne 'Shared Parameter'" & "and WorkItemType ne 'Shared Steps'" & "and WorkItemType ne 'Test Suite'" & "and WorkItemType ne 'Impediment'" & "and WorkItemType ne 'Epic'" & "and WorkItemType ne 'Feature'" & "and ChangedDate ge 2023-10-01T00:00:00Z" & ")", null, [Implementation="2.0", OmitValues=ODataOmitValues.Nulls, ODataVersion=4])

from flowviz.

nbrown02 avatar nbrown02 commented on June 9, 2024

Hi there,

Thanks for sharing.

Is this a large ADO project? The error is one typically seen with a timeout due to a large dataset (I have several reports on a scheduled refresh not seeing any errors).

The workaround would be to change those tables and their queries to be a shorter date range...

from flowviz.

orlando-noda avatar orlando-noda commented on June 9, 2024

Yes, it is a huge project. They have over 50 teams on this project.

I've tried to change one query, but with no success.

Original query: = OData.Feed(#"Http/Https" & "://" & #"Analytics URL/Azure DevOps Server" & "/" & Organization & "/" & Project & "/_odata/v3.0-preview/WorkItemRevisions?" & "$apply=filter(" & "StateCategory ne 'Proposed'" & "and WorkItemType ne 'Issue'" & "and WorkItemType ne 'Task'" & "and WorkItemType ne 'Test Case'" & "and WorkItemType ne 'Test Plan'" & "and WorkItemType ne 'Shared Parameter'" & "and WorkItemType ne 'Shared Steps'" & "and WorkItemType ne 'Test Suite'" & "and WorkItemType ne 'Impediment'" & "and WorkItemType ne 'Epic'" & "and WorkItemType ne 'Feature'" & "and ChangedDate ge 2023-06-01T00:00:00Z" & ")", null, [Implementation="2.0", OmitValues=ODataOmitValues.Nulls, ODataVersion=4])

New Query: = OData.Feed(#"Http/Https" & "://" & #"Analytics URL/Azure DevOps Server" & "/" & Organization & "/" & Project & "/_odata/v3.0-preview/WorkItemRevisions?" & "$apply=filter(" & "StateCategory ne 'Proposed'" & "and Area Path eq 'Project\Systems\Opportunity to Cash'" & "and WorkItemType ne 'Issue'" & "and WorkItemType ne 'Task'" & "and WorkItemType ne 'Test Case'" & "and WorkItemType ne 'Test Plan'" & "and WorkItemType ne 'Shared Parameter'" & "and WorkItemType ne 'Shared Steps'" & "and WorkItemType ne 'Test Suite'" & "and WorkItemType ne 'Impediment'" & "and WorkItemType ne 'Epic'" & "and WorkItemType ne 'Feature'" & "and ChangedDate ge 2023-06-01T00:00:00Z" & ")", null, [Implementation="2.0", OmitValues=ODataOmitValues.Nulls, ODataVersion=4])

When I tried to change this query, got the following error:
error3

ps: I'm not a developer, so maybe a simple detail that I'm missing.

from flowviz.

nbrown02 avatar nbrown02 commented on June 9, 2024

So there is a thread in discussions on area path filtering - #33

I'd also try change the date range, as it is loading from June 1st (2023-06-01) it might make sense to start from say September (2023-09-01)

from flowviz.

orlando-noda avatar orlando-noda commented on June 9, 2024

Hi, @nbrown02 ! Just to let you know that this work around has worked to me.

Thank you for the support

from flowviz.

nbrown02 avatar nbrown02 commented on June 9, 2024

from flowviz.

jenniferrosemitchell21 avatar jenniferrosemitchell21 commented on June 9, 2024

@orlando-noda Hi there, Would you mind sharing how you restricted your data? Which Query did you do this in? I've looked at the queries but none of them mirror your paste above.

from flowviz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.