com.atlassian.jira.project.Project.getVersions()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(109)

本文整理了Java中com.atlassian.jira.project.Project.getVersions()方法的一些代码示例,展示了Project.getVersions()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.getVersions()方法的具体详情如下:
包路径:com.atlassian.jira.project.Project
类名称:Project
方法名:getVersions

Project.getVersions介绍

暂无

代码示例

代码示例来源:origin: com.atlassian.jira/jira-core

public boolean isDuplicateName(final Version currentVersion, final String name)
{
  //Chek to see if there is already a version with that name for the project
  for (final Version version : currentVersion.getProjectObject().getVersions())
  {
    if (!currentVersion.getId().equals(version.getId()) && name.trim().equalsIgnoreCase(version.getName()))
    {
      return true;
    }
  }
  return false;
}

代码示例来源:origin: com.atlassian.jira/jira-core

private void logImportResults(final ProjectImportResults projectImportResults)
{
  LOG.info("The project import took '" + projectImportResults.getImportDuration() + "' ms to run.");
  final Project project = projectImportResults.getImportedProject();
  if (project != null)
  {
    LOG.info("The project import created '" + project.getProjectComponents().size() + "' project components.");
    LOG.info("The project import created '" + project.getVersions().size() + "' project versions.");
    LOG.info("The project import created '" + project.getComponents().size() + "' project components.");
    LOG.info("The project import created '" + project.getVersions().size() + "' project versions.");
  }
  LOG.info("The project import created '" + projectImportResults.getUsersCreatedCount() + "' out of '" + projectImportResults.getExpectedUsersCreatedCount() + "' users.");
  for (final String projectRoleName : projectImportResults.getRoles())
  {
    LOG.info("The project import created " + projectImportResults.getUsersCreatedCountForRole(projectRoleName) + " users, " + projectImportResults.getGroupsCreatedCountForRole(projectRoleName) + " groups for project role " + projectRoleName + ".");
  }
  LOG.info("The project import created '" + projectImportResults.getIssuesCreatedCount() + "' out of '" + projectImportResults.getExpectedIssuesCreatedCount() + "' issues.");
  LOG.info("The project import created '" + projectImportResults.getAttachmentsCreatedCount() + "' out of " + projectImportResults.getExpectedAttachmentsCreatedCount() + "' attachments.");
}

代码示例来源:origin: com.atlassian.jira/jira-rest-plugin

builder.components(project.getProjectComponents());
builder.url(project.getUrl());
builder.versions(project.getVersions());
builder.assigneeType(project.getAssigneeType());
builder.email(project.getEmail());

相关文章