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; }
/// <remarks/> public void addVersionAsync(string in0, string in1, RemoteVersion in2, object userState) { if ((this.addVersionOperationCompleted == null)) { this.addVersionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnaddVersionOperationCompleted); } this.InvokeAsync("addVersion", new object[] { in0, in1, in2}, this.addVersionOperationCompleted, userState); }
/// <remarks/> public void addVersionAsync(string in0, string in1, RemoteVersion in2) { this.addVersionAsync(in0, in1, in2, null); }
public RemoteVersion addVersion(string in0, string in1, RemoteVersion in2) { object[] results = this.Invoke("addVersion", new object[] { in0, in1, in2}); return ((RemoteVersion)(results[0])); }
/// <remarks/> public void releaseVersionAsync(string in0, string in1, RemoteVersion in2) { this.releaseVersionAsync(in0, in1, in2, null); }
public void releaseVersion(string in0, string in1, RemoteVersion in2) { this.Invoke("releaseVersion", new object[] { in0, in1, in2}); }