PivotalTrackerAPI/Util/PivotalFilterHelper.cs
/// <summary>
/// Creates a query string to use as a filter parameter (does not prepend the ampersand)
/// </summary>
/// <param name="states">The states of the items to query (unscheduled, unstarted, started, finished, delivered, accepted, or rejected)</param>
/// <param name="baseFilter">the filter to extend.  Leave blank or null to create a new filter base</param>
/// <returns>A query string</returns>
Creates a query string to use as a filter parameter (does not prepend the ampersand)
Creates a query string to use as a filter parameter ( does not prepend the ampersand )
public static string BuildStateFilter(IList<string> states, string baseFilter)
    {
      string statesString = "";
      foreach (string s in states)
      {
        statesString += s + ",";
      }
      return ConstructFilter(baseFilter, "state", statesString);
    }
public static string BuildStateFilter ( IList < string > states , string baseFilter ) { string statesString = " " ; foreach ( string s in states ) { statesString += s + " " ; } return ConstructFilter ( baseFilter , " " , statesString ) ; }
Creates a query string to use as a filter parameter (does not prepend the ampersand)
Creates a query string to use as a filter parameter ( does not prepend the ampersand )
A query string
A query string
states
IList<string>
The states of the items to query (unscheduled, unstarted, started, finished, delivered, accepted, or rejected)
The states of the items to query ( unscheduled unstarted started finished delivered accepted or rejected )
baseFilter
string
the filter to extend.  Leave blank or null to create a new filter base
the filter to extend . Leave blank or null to create a new filter base