TFS2010 Query - Find Orphan Tasks? - workitem

I'm using the MSF Agile 5.0 project template.
I'm looking to modify the Product Backlog query to include tasks that have no parents. The query currently only shows User Stories.
I don't see a field to query against such as parent item id or similar.
Has anyone done this?

Why are you looking to include tasks? The product backlog is to prioritize the User stories. If you want to plan on tasks, then use the Iteration backlog.
To achieve this result you can use the "Work items and direct links" type of query. Then in the 'top grid' specify the work item type = "task" and in the 'bottom grid' specify the work item type = 'user story. Then change the linking filter to "only return items that do not have the specified links"

Related

How to find all "orphaned" user stories in Rally tool

I want to find all "orphaned" user stories in Rally, where a user story does not belong to any feature. I know I need to set filter to((PortfolioItem = null) AND (Parent = null)) but where do I do that? Where do I start?
Forgive my ignorance, I am new to Rally
You have a bunch of options: the Work Views page or a custom list app are both decent places to start. Both of those apps have filters where you should be able to select a filter for Parent = -- No Entry --
To select the orphaned user stories, the below steps while tracking every iteration status would help,
Add Filter on field 'Feature'
In the filter for 'Feature', choose the value '-- No Entry --'
This would give you the list of user stories which are not linked to a parent feature in the respective iteration

Managing PerformancePoint Filters With Slowly Changing Dimensions

Just a bit of background info:
I have dimension table which uses SCD2 to track user changes in our company (team changes, job title changes etc) See example below:
I've built an Analysis Services Cube and created all the necessary hierarchy's for the dimensions and it works well when navigating and drilling down through the fact table.
The problem I have is with the filters on the PerformancePoint dashboard. As I'm using the User Dimension table with it's multiple instances of users it's showing duplicates up in the list. I can understand why as the surrogate ID is being referenced on the Dimension. But if I choose the first instance of the A-team I will see all their sales for a particular period and if I choose the second instance I will see all their sales for a different period.
What is the best way to handle this type of behavior? Ideally I'd like to see a distinct list of teams in alphabetical order and when I choose the team name it shows all of their data over time.
I've considered using MDX query filters but I'd like to see if there's anything I haven't thought about.
I realise this isn't an easy and quick question but any help would be appreciated!
The answer was simple after having a trawl through my User Dimension table on the Cube.
Under my user dimension I added 2 duplicate attributes to my attributes list ("Team Filter" is a copy of "Team", "User Filter" a copy of "User Name") these will be used only for filtering the dashboard.
Under the attribute properties for each duplicate I then set AttributeHierarchyOptimizedState to "Not Optimized", I also set their AttributeHierarchyVisible to false as I'd shown the two duplicate attributes in the hierarchy window in the middle.
Deploy your Cube to the server and go in to PerformancePoint. Create a new MDX Filter (this image shows the finished filter)
This is the code I used, it only shows dimension members which have a fact against them (reduces the list a considerable amount) and by using allmembers at the dimension it also gives me the option to show "All" at the top of the list.
Deploy the new filters and now you can see the distinct list of users and teams, works perfectly and selects every instance (regardless of the SCD2 row)

Searching products using details.name and details.value using the Best Buy API

The Best Buy Search allows to search products specifying a criterion on details.name and details.value fields.
http://api.remix.bestbuy.com/v1/products(details.name="Processor Speed" & details.value="2.4Ghz")?apiKey=YOURKEY
However details is a collection. The query above actually returns all products has a detail entry named "processor" and a detail entry whose value is "2.4Ghz" but not necessarily in the same details entry. Is there a way to create a query that will return only products for which those value and name are for the same details entry ?
Unfortunately there is no way to do this unless the particular detail you are interested in has been exposed as a top level attribute (processor speed has not). To accomplish this you will need to run your query as you have described, and then comb through the results and remove the irrelevant products in your own code.

SAP Business One I Query inventory base on user defined field

I am running a query on a product. I need a field that will look at the user defined field which contains another product and check that stock level. Any help would be great.
What is the main objective?
Are you trying to check on that item because that item is the material/component? or act like a substitution?
Using UDF is quite not feasible as you have to get the link to the Item Master Data, and I have not figured out yet how to do that.
But if you are using it as substitution, why don't you use Alternative Item in Inventory > Item Management > Alternative Items? It will show on Sales Quotation for you to display it to customer. Or during Sales Order, you can get it displayed for alternative should your main item is shortage.
If you are using those item as a component, I suggest you use Bill of Material. During Production Order you will be able to see those component's availability in qty, and also you can have more than one, unlike UDF.
Hope this helps.
I think the key part you're missing here is the naming convention which SAP adpots for user defined fields.
Correct me if I'm wrong, but it seems that you're capable of querying these fields from a SQL point of view.
UDFs by defuault, will have their column name prefixed with "U_".
For example, the UDF 'AnotherProduct' will be referred to in SQL as 'U_AnotherProduct'.
Hope this helps, if not, please explain your problem in some more detail.

How can I display all the stories of an iteration and group them by their Epic or parent if they have one?

Looking to create a custom app that shows all stories assigned to an iteration including that stories tasks, tests and defects but also grouped by Parent or Epic like the following and each item links to that work product item. What is the best approach to group stories by parent?
Parent Story 1
- Story 1
- Test
- Task
- Defect
- Story 2
First you will need to query to get the stories for the iteration. If you want to allow your app's user to select the Iteration you can use the Iteration Dropdown. If you query stories using the getQueryFromSelected method on the dropdown you should have the stories that are attached to the chosen Iteration.
When fetching the stories using RallyDataSource specify Tasks, Defects and TestCases as a part of your fetch string.
If you need any other fields populated fill them in the fetch string and the dependent objects will have them filled as well.
For example if you need their FormattedID, specifying that in your fetch string will also populate that field on the Tasks.
Once you have your data you just need to figure out how you want to display it.