是否有像__PROJECT_SCOPING__那样的Rally范围变量但是对于发布?

时间:2013-11-25 19:40:00

标签: rally

我正在尝试制作一个Release Summary Rally App,它响应页面上的Release Scoping页面,而不是让它自己发布“picker”。

我想替换

        {
            key: "release",
            type: "release",
            fetch: "Notes",
            query: new rally.sdk.util.Query("ObjectID = " + rally.sdk.util.Ref.getOidFromRef(releaseDropdown.getSelectedItem()))
        }

有这样的事情:

        {
            key: "release",
            type: "release",
            fetch: "Notes",
            query: new rally.sdk.util.Query("ObjectID = " + __RELEASE_SCOPING__)
        }

但我找不到任何这方面的证据。

页面上的发布状态如何与页面上的应用程序进行通信?如何处理当前显示的版本,以便操作我的应用程序以响应该信息?

1 个答案:

答案 0 :(得分:0)

这是完全可能的。看看这个doc:

https://help.rallydev.com/apps-timebox-filtered-dashboards

您的代码可能看起来像这样:

var panelContext = rally.sdk.util.Context.getPanelContext();
if(panelContext.timeboxFilter && panelContext.timeboxFilter.release) {
    var release = panelContext.timeboxFilter.release; //the release object
    var releaseQuery = panelContext.timeboxFilter.query; //a query to find all "like" releases in the current project scope

    var queryObj = {
        key: "release",
        type: "release",
        fetch: "Notes",
        query: new rally.sdk.util.Query("ObjectID = " + release.ObjectID)
    }
    //do the query
    //rallyDataSource.findAll(queryObj...)
}