Tabnine Logo
VersionInput
Code IndexAdd Tabnine to your IDE (free)

How to use
VersionInput
in
com.atlassian.jira.rest.client.api.domain.input

Best Java code snippets using com.atlassian.jira.rest.client.api.domain.input.VersionInput (Showing top 8 results out of 315)

origin: com.atlassian.jira/jira-rest-java-client-api

  public VersionInput build() {
    return new VersionInput(projectKey, name, description, releaseDate, archived, released);
  }
}
origin: com.atlassian.jira/jira-rest-java-client-core

  @Override
  public JSONObject generate(VersionInput version) throws JSONException {
    final JSONObject jsonObject = new JSONObject();
    jsonObject.put("name", version.getName());
    jsonObject.put("project", version.getProjectKey());
    if (version.getDescription() != null) {
      jsonObject.put("description", version.getDescription());
    }
    if (version.getReleaseDate() != null) {
      jsonObject.put("releaseDate", JsonParseUtil.formatDate(version.getReleaseDate()));
    }
    jsonObject.put("released", version.isReleased());
    jsonObject.put("archived", version.isArchived());
    return jsonObject;
  }
}
origin: org.openengsb.wrapped/jira-rest-java-client-core

  @Override
  public JSONObject generate(VersionInput version) throws JSONException {
    final JSONObject jsonObject = new JSONObject();
    jsonObject.put("name", version.getName());
    jsonObject.put("project", version.getProjectKey());
    if (version.getDescription() != null) {
      jsonObject.put("description", version.getDescription());
    }
    if (version.getReleaseDate() != null) {
      jsonObject.put("releaseDate", JsonParseUtil.formatDate(version.getReleaseDate()));
    }
    jsonObject.put("released", version.isReleased());
    jsonObject.put("archived", version.isArchived());
    return jsonObject;
  }
}
origin: com.atlassian.jira/jira-rest-java-android-client-api

  public VersionInput build() {
    return new VersionInput(projectKey, name, description, releaseDate, archived, released);
  }
}
origin: com.atlassian.jira/jira-rest-java-client-api

public static VersionInput create(String projectKey, String name, @Nullable String description, @Nullable DateTime releaseDate,
                 boolean archived, boolean release) {
  return new VersionInput(projectKey, name, description, releaseDate, archived, release);
}
origin: com.atlassian.jira/jira-rest-java-android-client-api

public static VersionInput create(String projectKey, String name, @Nullable String description, @Nullable DateTime releaseDate,
    boolean archived, boolean release) {
  return new VersionInput(projectKey, name, description, releaseDate, archived, release);
}
origin: jenkinsci/jira-plugin

public Version addVersion(String projectKey, String versionName) {
  final VersionInput versionInput = new VersionInput(projectKey, versionName, null, null, false, false);
  try {
    return jiraRestClient.getVersionRestClient()
           .createVersion(versionInput).get(timeout, TimeUnit.SECONDS);
  } catch (Exception e) {
    LOGGER.log(WARNING, "jira rest client add version error. cause: " + e.getMessage(), e);
    return null;
  }
}
origin: jenkinsci/jira-plugin

public void releaseVersion(String projectKey, Version version) {
  final URIBuilder builder = new URIBuilder(uri)
    .setPath(String.format("%s/version/%s", baseApiPath, version.getId()));
  final VersionInput versionInput = new VersionInput(projectKey, version.getName(), version.getDescription(), version
    .getReleaseDate(), version.isArchived(), version.isReleased());
  try {
    jiraRestClient.getVersionRestClient().updateVersion(builder.build(), versionInput).get(timeout, TimeUnit.SECONDS);
  }catch (Exception e) {
    LOGGER.log(WARNING, "jira rest client release version error. cause: " + e.getMessage(), e);
  }
}
com.atlassian.jira.rest.client.api.domain.inputVersionInput

Javadoc

Input data describing details of a project version to create.

Most used methods

  • <init>
  • getDescription
  • getName
  • getProjectKey
  • getReleaseDate
  • isArchived
  • isReleased

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • startActivity (Activity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Kernel (java.awt.image)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now