RallyTools / RallyRestToolkitForRuby

A toolkit wrapping Rally's REST webservice for Ruby
MIT License
47 stars 32 forks source link

Query searches across projects when it shouldn't #53

Open dkwilliams opened 8 years ago

dkwilliams commented 8 years ago

Setup info:

I have a workspace named "ETS Kanban." Inside the workspace, I have two projects "ETS Workflow" and "Test Project." I have created a custom field for the workspace called "FacetsID" (simple text field). In the project "ETS Workflow," I have a user story (US1125) with FacetsID set to "201601072400." In the "Test Project," I don't have any stories with that facets id.

Issue:

I'm writing a ruby script that will read a csv file. For each row, there is a column with the FacetsID. I search the "Test Project" for the FacetsID equal to the value from csv row. It searches across both projects when I expect it to only search "Test Project."

In this case, searching for FacetsID "201501072400" in the "Test Project" returns a record found with formattedID "US1125." The challenge is that this record is from the "ETS Workflow" project. So I can't add it to the "Test Project" and if I update it, it updates in the other project. See the attached file for my code.

generic_import_sample.rb.txt