lib/rally_user_helper.rb
# Check to see if a project is within a particular workspace.
Check to see if a project is within a particular workspace.
Check to see if a project is within a particular workspace .
def is_project_in_workspace(project, workspace)
      test_project_oid = project["ObjectID"]
      this_workspace_oid = workspace["ObjectID"]
      object_id_matches = false
      these_projects = @workspace_hash_of_projects[this_workspace_oid]
      these_projects.each do | this_project |
        this_project_oid = this_project["ObjectID"]
        if test_project_oid == this_project_oid then
          object_id_matches = true
        end
      end
      return object_id_matches
    end
def is_project_in_workspace ( project , workspace ) test_project_oid = project [ "ObjectID" ] this_workspace_oid = workspace [ "ObjectID" ] object_id_matches = false these_projects = @workspace_hash_of_projects [ this_workspace_oid ] these_projects . each do | this_project | this_project_oid = this_project [ "ObjectID" ] if test_project_oid == this_project_oid then object_id_matches = true end end return object_id_matches end
Check to see if a project is within a particular workspace.
Check to see if a project is within a particular workspace .
project
workspace