/** * Creates a new JIRA issue. * * @param restclient REST client instance * @param project Key of the project to create the issue in * @param issueType Name of the issue type to create * * @return a fluent create instance * * @throws JiraException when the client fails to retrieve issue metadata */ public static FluentCreate create(RestClient restclient, String project, String issueType) throws JiraException { FluentCreate fc = new FluentCreate( restclient, getCreateMetadata(restclient, project, issueType)); return fc .field(Field.PROJECT, project) .field(Field.ISSUE_TYPE, issueType); }
/** * Creates a new JIRA issue. * * @param restclient REST client instance * @param project Key of the project to create the issue in * @param issueType Name of the issue type to create * * @return a fluent create instance * * @throws JiraException when the client fails to retrieve issue metadata */ public static FluentCreate create(RestClient restclient, String project, String issueType) throws JiraException { FluentCreate fc = new FluentCreate( restclient, getCreateMetadata(restclient, project, issueType)); return fc .field(Field.PROJECT, project) .field(Field.ISSUE_TYPE, issueType); }
/** * Creates a new sub-task. * * @return a fluent create instance * * @throws JiraException when the client fails to retrieve issue metadata */ public FluentCreate createSubtask() throws JiraException { return Issue.create(restclient, getProject().getKey(), "Sub-task") .field(Field.PARENT, getKey()); }
/** * Creates a new sub-task. * * @return a fluent create instance * * @throws JiraException when the client fails to retrieve issue metadata */ public FluentCreate createSubtask() throws JiraException { return Issue.create(restclient, getProject().getKey(), "Sub-task") .field(Field.PARENT, getKey()); }