PivotalTrackerAPI/Util/PivotalFilterHelper.cs
/// <summary>
/// Creates a query string to use as a filter parameter (does not prepend the ampersand)
/// </summary>
/// <param name="labels">The labels to filter on</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 BuildLabelFilter(IList<string> labels, string baseFilter)
    {
      string labelString = "";
      foreach (string s in labels)
      {
        labelString += s + ",";
      }
      return ConstructFilter(baseFilter, "label", labelString);
    }
public static string BuildLabelFilter ( IList < string > labels , string baseFilter ) { string labelString = " " ; foreach ( string s in labels ) { labelString += s + " " ; } return ConstructFilter ( baseFilter , " " , labelString ) ; }
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
labels
IList<string>
The labels to filter on
The labels to filter on
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