Tabnine Logo
IssueTypeJsonBean.shortBean
Code IndexAdd Tabnine to your IDE (free)

How to use
shortBean
method
in
com.atlassian.jira.issue.fields.rest.json.beans.IssueTypeJsonBean

Best Java code snippets using com.atlassian.jira.issue.fields.rest.json.beans.IssueTypeJsonBean.shortBean (Showing top 5 results out of 315)

origin: com.atlassian.jira/jira-api

public static IssueTypeJsonBean shortBean(String self, String id, String name, String description, boolean subtask, String iconUrl)
{
  return shortBean(self, id, name, description, subtask, null, iconUrl);
}
origin: com.atlassian.jira/jira-api

public static Collection<IssueTypeJsonBean> shortBeans(final Collection<IssueType> issuetypes, final JiraBaseUrls urls) {
  Collection<IssueTypeJsonBean> result = Lists.newArrayListWithCapacity(issuetypes.size());
  for (IssueType from : issuetypes)
  {
    result.add(shortBean(from, urls));
  }
  return result;
}
origin: com.atlassian.jira/jira-core

@Override
public FieldJsonRepresentation getJsonFromIssue(Issue issue, boolean renderedVersionRequired, FieldLayoutItem fieldLayoutItem)
{
  return new FieldJsonRepresentation(new JsonData(IssueTypeJsonBean.shortBean(issue.getIssueTypeObject(), jiraBaseUrls)));
}
origin: com.atlassian.jira/jira-rest-plugin

public IssueTypeJsonBean build()
{
  verifyPreconditions();
  String iconAbsoluteURL;
  try
  {
    iconAbsoluteURL = new URL(issueType.getIconUrl()).toString();
  }
  catch (MalformedURLException e)
  {
    iconAbsoluteURL = baseURI.baseUrl() + issueType.getIconUrl();
  }
  return IssueTypeJsonBean.shortBean(
      new ResourceUriBuilder().build(context, IssueTypeResource.class, issueType.getId()).toString(),
      issueType.getId(),
      issueType.getNameTranslation(),
      issueType.getDescTranslation(),
      issueType.isSubTask(),
      issueType.getAvatar() != null ? issueType.getAvatar().getId() : null,
      iconAbsoluteURL
  );
}
origin: com.atlassian.jira/jira-api

  public  IssueRefJsonBean createIssueRefJsonBean(final Issue issue)
  {
    return new IssueRefJsonBean()
        .id(String.valueOf(issue.getId()))
        .key(issue.getKey())
        .self(URI.create(jiraBaseUrls.restApi2BaseUrl() + "issue/" + issue.getId()))
        .fields(new IssueRefJsonBean.Fields()
            .summary(issue.getSummary())
            .status(StatusJsonBean.bean(issue.getStatusObject(), jiraBaseUrls))
            .issueType(IssueTypeJsonBean.shortBean(issue.getIssueTypeObject(), jiraBaseUrls))
            .priority(PriorityJsonBean.shortBean(issue.getPriorityObject(), jiraBaseUrls))
        );
  }
}
com.atlassian.jira.issue.fields.rest.json.beansIssueTypeJsonBeanshortBean

Popular methods of IssueTypeJsonBean

  • <init>
  • getDescription
  • getIconUrl
  • getId
  • getName
  • getSelf
  • isSubtask
  • shortBeans

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getContentResolver (Context)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • JOptionPane (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • From CI to AI: The AI layer in your organization
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