Apps on Timebox-Filtered Dashboards

Deprecation Warning! The content below is only applicable for use within deprecated 1.x versions of CA Agile Central's App SDK. Use of the components and code on this page is not supported. To develop custom apps in our current environments, please see App SDK 2.1 documentation.

It is possible to get the current dashboard page context from an app running in a custom panel:

    var panelContext = rally.sdk.util.Context.getPanelContext();
    if(panelContext.timeboxFilter && panelContext.timeboxFilter.iteration) {
        //Global iteration filter
        var iteration = panelContext.timeboxFilter.iteration;
        var iterationQuery = panelContext.timeboxFilter.query;
    } else if(panelContext.timeboxFilter && panelContext.timeboxFilter.release) {
        //Global release filter
        var release = panelContext.timeboxFilter.release;
        var releaseQuery = panelContext.timeboxFilter.query;
    } else {
        //No global timebox filter 
    }

If your app declares a global function named onDashboardPageTimeboxFilterChanged it will be automatically called when the global timebox filter changes:

    function onDashboardPageTimeboxFilterChanged(args) {
        if (args.iteration) {
            //Global iteration changed
            var iteration = args.iteration;
            var iterationQuery = args.query;
        } else if(args.release) {
            //Global release changed
            var release = args.release;
            var releaseQuery = args.query;  
        }
    }

Feedback

Benötigen Sie weitere Informationen? Die CA Agile Central-Community ist Ihre zentrale Anlaufstelle für Self-Service und Support. Treten Sie der CA Agile Central-Community bei, um dem CA Agile Central-Support Feedback mitzuteilen oder Fälle zu melden, Antworten zu finden oder mit anderen Benutzern zusammenzuarbeiten.