Click or drag to resize
RefGetRelativeRef Method
Get a relative ref from the specified ref. All server information will be stripped before being returned.

Namespace: Rally.RestApi
Assembly: Rally.RestApi (in Rally.RestApi.dll) Version: 3.1.1.0 (3.1.1.0)
Syntax
public static string GetRelativeRef(
	string reference
)

Parameters

reference
Type: SystemString
The absolute ref to be made relative

Return Value

Type: String
The relative version of the specified absolute ref
Examples
C#
string fullyQualifiedRef = "https://rally1.rallydev.com/slm/webservice/v2.0/portfolioitem/feature/1234";
string relativeRef = Ref.GetRelativeRef(fullyQualifiedRef);

// returns "/portfolioitem/feature/1234"
See Also