/** * 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); }
/** * Executes the create action and specify which fields to retrieve. * * @param includedFields Specifies which issue fields will be included * in the result. * <br>Some examples how this parameter works: * <ul> * <li>*all - include all fields</li> * <li>*navigable - include just navigable fields</li> * <li>summary,comment - include just the summary and comments</li> * <li>*all,-comment - include all fields</li> * </ul> * * @throws JiraException when the create fails */ public Issue execute(String includedFields) throws JiraException { return executeCreate(includedFields); }
/** * 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); }
/** * Executes the create action and specify which fields to retrieve. * * @param includedFields Specifies which issue fields will be included * in the result. * <br>Some examples how this parameter works: * <ul> * <li>*all - include all fields</li> * <li>*navigable - include just navigable fields</li> * <li>summary,comment - include just the summary and comments</li> * <li>*all,-comment - include all fields</li> * </ul> * * @throws JiraException when the create fails */ public Issue execute(String includedFields) throws JiraException { return executeCreate(includedFields); }
/** * 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()); }
/** * Executes the create action (issue includes all fields). * * @throws JiraException when the create fails */ public Issue execute() throws JiraException { return executeCreate(null); }
/** * Executes the create action (issue includes all fields). * * @throws JiraException when the create fails */ public Issue execute() throws JiraException { return executeCreate(null); }