public static RemoteVersion CreateVersion(string projectKey, string versionName) { if (!IsConfigured) { throw new InvalidOperationException("JIRA is not configured"); } var remoteVersion = new RemoteVersion { name = versionName }; if (Log.IsDebugEnabled) { Log.DebugFormat("Creating version: {0}\n{1}", projectKey, remoteVersion.ToJson()); } remoteVersion = Service.addVersion(GetToken(), projectKey, remoteVersion); if (Log.IsDebugEnabled) { Log.DebugFormat("Response:\n{0}", remoteVersion.ToJson()); } return(remoteVersion); }