Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8920275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:13:42+00:00 2026-06-15T06:13:42+00:00

I’ve been working on customizing the AgileEVM app using sdk 1.32 and I’ve been

  • 0

I’ve been working on customizing the AgileEVM app using sdk 1.32 and I’ve been using preferences to store various values that users will set (multiple billable rates, non-full time resources, etc..). Here is how I’m creating the preferences:

_rallyDataSource.create("preference",
{
    Name: 'BillableRate',
    Project: '/project/__PROJECT_OID__',
    Value: 0
}, function(results) { isTeamLevel = results; } );

The workspace is structured where the parent project has multiple tracks and those tracks have multiple teams. I want the app to calculate the appropriate EVM data on every level of the project hierarchy. I’m running into an issue where I can’t retrieve the preferences of the current project as well as all of its child projects. PROJECT_SCOPING_DOWN is set to true. It seems like preferences are handled differently than stories/tasks/etc..

Here is how I’m getting the preference(s):

var queryConf = {type: 'Preference',
                 key :'billableRate',
                 query:'(Project = "/project/__PROJECT_OID__")',
                 fetch:true};

_rallyDataSource.findAll(queryConf, preferencesRetrievedCallback);

If I include the project oid in the query, I only get preferences associated with that project, none of the child projects. If I remove the project oid from the query, it returns every preference, regardless of hierarchy.

I also tried to accomplish this using CreateAppPreference and GetAppPreferences, but it appeared to exhibit the same behavior.

My question is, am I doing something wrong here? If not, and this is the intended functionality, then how do I best store these variables so that they roll up properly at every level of the project structure?

Thanks in advance for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T06:13:44+00:00Added an answer on June 15, 2026 at 6:13 am

    The Preference WSAPI endpoint is a bit unique in that it doesn’t use any workspace or project scoping information passed in the url except for explicit queries like you have above:

     (Project = /project/12345)
    

    You could use the PROJECT_OIDS_IN_SCOPE hangman variable and construct a large OR’d query, although if you have a lot of projects in scope the request may fail because it gets too large…

    var queries = [];
    var projectOids = '__PROJECT_OIDS_IN_SCOPE__'.split(',');
    rally.forEach(projectOids, function(projectOid) {
        queries.push('Project = /project/' + projectOid);
    });
    var query = rally.sdk.util.Query.or(queries);
    

    Otherwise you could just make a new preference request for each project in scope much like you are doing for the current project.

    Another option would be to save the pref as a workspace pref instead and have the value be a json object with keys being project oids and values being the value…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I need a function that will clean a strings' special characters. I do NOT
I am using Paperclip to handle profile photo uploads in my app. They upload
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am reading a book about Javascript and jQuery and using one of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.