public class TaskGenerator extends Object
| Constructor and Description |
|---|
TaskGenerator(JiraClient jiraClient)
Constructs the generator with a given Jira client.
|
TaskGenerator(JiraClient jiraClient,
File propertyFile)
Constructs the generator with a given Jira client.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createEpic(Epic epic)
Creates epic.
|
protected void |
createSubtask(Task subtask,
Task task)
Creates a subtask of a given task / epic.
|
protected void |
createTask(Task task,
Epic epic)
Creates a task which will be linked the an epic.
|
protected Map<String,String> |
fields(Task task) |
void |
generate(File yamlFile)
Generates epics, tasks and subtasks from a YAML template.
|
protected void |
initializeJiraClient(Template template,
File yamlFile)
Initializes the Jira client with respect of variables defined an a given template.
|
protected Task |
resolve(Task task) |
protected Task |
setMissingFields(Task child,
Task parent)
Sets missing task fields from a parent.
|
public TaskGenerator(JiraClient jiraClient) throws FileNotFoundException, IOException
jiraClient - Jira clientFileNotFoundExceptionIOExceptionpublic TaskGenerator(JiraClient jiraClient, File propertyFile) throws FileNotFoundException, IOException
jiraClient - Jira clientpropertyFile - Property fileFileNotFoundExceptionIOExceptionpublic void generate(File yamlFile)
yamlFile - YAML templateprotected void initializeJiraClient(Template template, File yamlFile)
template - TemplateyamlFile - YAML file of the templateprotected void createEpic(Epic epic)
epic - Epicprotected void createTask(Task task, Epic epic)
task - Taskepic - Epicprotected void createSubtask(Task subtask, Task task)
subtask - Subtasktask - Parent task / epicCopyright © 2022. All rights reserved.