访问TFS立方体以获取区域层次结构的唯一名称

发布于 2024-12-05 10:05:36 字数 957 浏览 1 评论 0原文

我想获取给定区域路径的唯一名称。

我看过 John Socha 的这篇文章: http: //blogs.socha.com/2009/10/customizing-report-parameters-for-team.html。我想做的是在一个查询中完成约翰正在手动执行的操作。

我有一种“通用”查询来获取给定区域层次结构级别的所有值。查询是这样的:


    WITH
    MEMBER [Measures].[ParameterValue] AS [Work Item].[Area Hierarchy].CurrentMember.UniqueName
    MEMBER [Measures].[ParameterLevel] AS [Work Item].[Area Hierarchy].CurrentMember.Level.Ordinal
    SELECT
    {
        [Measures].[ParameterValue],
        [Measures].[ParameterLevel]
    } ON COLUMNS,

    NON EMPTY { ([Work Item].[Area Hierarchy].[Area1].ALLMEMBERS ) } 
    ON ROWS 
    FROM [Team System]

通过这个查询,我获得这些值: 查询的值

因此,给定一个区域路径(如 \Tailspin Toys\Web Development)可能会获得该区域的唯一名称在 TFS 立方体中?

非常感谢!

最好的问候,

维森斯

I would like to obtain the unique name of a given area path.

I've seen this article of John Socha: http://blogs.socha.com/2009/10/customizing-report-parameters-for-team.html. What I would like to do is to do in one query what John is doing manually.

I have a kind of "generic" query to obtain all the values of given area hierarchy level. The query is this:


    WITH
    MEMBER [Measures].[ParameterValue] AS [Work Item].[Area Hierarchy].CurrentMember.UniqueName
    MEMBER [Measures].[ParameterLevel] AS [Work Item].[Area Hierarchy].CurrentMember.Level.Ordinal
    SELECT
    {
        [Measures].[ParameterValue],
        [Measures].[ParameterLevel]
    } ON COLUMNS,

    NON EMPTY { ([Work Item].[Area Hierarchy].[Area1].ALLMEMBERS ) } 
    ON ROWS 
    FROM [Team System]

With this query I obtain these values:
Query's values

So, it is possible that given an area path like \Tailspin Toys\Web Development obtain the unique name of the area in the TFS cube?

Thank you very much!

Best regards,

Vicenç

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你与清晨阳光 2024-12-12 10:05:36

您可以使用 WHERE 子句限制 MDX SELECT 查询。将以下内容添加到查询末尾

WHERE [Work Item].[Item Hierarchy].[Tailspin Toys].[Web Development]

You can restrict an MDX SELECT query using the WHERE clause. Add the following to the end of your query

WHERE [Work Item].[Item Hierarchy].[Tailspin Toys].[Web Development]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文