Interface SampleDataGenerator
- All Known Implementing Classes:
SampleDataGeneratorImpl
public interface SampleDataGenerator
-
Method Summary
Modifier and TypeMethodDescriptioncreateRapidViewWithProjects(String rapidViewName, RapidViewPreset rapidViewPreset, List<com.atlassian.jira.project.Project> projects) Creates a rapid view for a list of projectsServiceOutcome<com.atlassian.jira.project.Project>createSampleKanbanData(String projectKey, String projectName, io.atlassian.fugue.Option<String> projectLeadUserName) Creates a kanban project and fills it with sample dataServiceOutcome<com.atlassian.jira.project.Project>createSampleScrumData(String projectKey, String projectName, io.atlassian.fugue.Option<String> projectLeadUserName) Creates a scrum project and fills it with sample dataServiceOutcome<com.atlassian.jira.project.Project>importSampleDataFromUrl(String projectKey, String projectName, io.atlassian.fugue.Option<String> projectLeadUserName, SimplifiedWorkflowPresets projectWorkflow, URL sampleDataUrl, ProjectType projectType) Creates a project from data contained in a JSON file
-
Method Details
-
createSampleKanbanData
ServiceOutcome<com.atlassian.jira.project.Project> createSampleKanbanData(String projectKey, String projectName, io.atlassian.fugue.Option<String> projectLeadUserName) Creates a kanban project and fills it with sample data- Parameters:
projectKey-projectName-projectLeadUserName- anOptionwhich can contain the user name of the lead for the project to be created- Returns:
- an outcome which will either have the project or errors
-
createSampleScrumData
ServiceOutcome<com.atlassian.jira.project.Project> createSampleScrumData(String projectKey, String projectName, io.atlassian.fugue.Option<String> projectLeadUserName) Creates a scrum project and fills it with sample data- Parameters:
projectKey- the key for the project to be createdprojectName- the name for the project to be createdprojectLeadUserName- anOptionwhich can contain the user name of the lead for the project to be created- Returns:
- an outcome which will either have the project or errors
-
importSampleDataFromUrl
ServiceOutcome<com.atlassian.jira.project.Project> importSampleDataFromUrl(String projectKey, String projectName, io.atlassian.fugue.Option<String> projectLeadUserName, SimplifiedWorkflowPresets projectWorkflow, URL sampleDataUrl, ProjectType projectType) Creates a project from data contained in a JSON file- Parameters:
projectKey- the key for the project to be createdprojectName- the name for the project to be createdprojectLeadUserName- anOptionwhich can contain the user name of the lead for the project to be createdprojectWorkflow- the simplified workflow preset to use for the project to be createdsampleDataUrl- the URL to the JSON file containing the sample data to importprojectType- the project type- Returns:
- an outcome which will either have the project or errors
-
createRapidViewWithProjects
ServiceOutcome<RapidView> createRapidViewWithProjects(String rapidViewName, RapidViewPreset rapidViewPreset, List<com.atlassian.jira.project.Project> projects) Creates a rapid view for a list of projects- Parameters:
rapidViewName- the name of the rapid view to be createdrapidViewPreset- the column preset for the rapid view to be createdprojects- the projects to be shown on the rapid view
-