@Service public class SampleDataGeneratorImpl extends Object implements SampleDataGenerator
| Constructor and Description |
|---|
SampleDataGeneratorImpl(com.atlassian.jira.plugins.importer.sample.SampleDataImporter importer,
AgileProjectConfigurator agileProjectConfigurator,
com.atlassian.jira.config.properties.ApplicationProperties applicationProperties,
com.atlassian.jira.util.I18nHelper.BeanFactory i18nBeanFactory,
com.atlassian.plugin.PluginAccessor pluginAccessor,
SprintManager sprintManager,
WorkflowService workflowService,
com.atlassian.jira.issue.CustomFieldManager customFieldManager,
com.atlassian.jira.security.JiraAuthenticationContext jiraAuthenticationContext,
SimplifiedWorkflowService simplifiedWorkflowService,
LexoRankCustomFieldService rankCustomFieldService,
com.atlassian.jira.project.ProjectManager projectManager,
com.atlassian.jira.issue.IssueManager issueManager,
LexoRankManager lexoRankManager,
RapidViewHelper rapidViewHelper,
RapidViewPresetService rapidViewPresetService,
ColumnService columnService,
com.atlassian.jira.issue.IssueFactory issueFactory,
IssueTypeService issueTypeService,
ProjectService projectService,
EpicCustomFieldService epicCustomFieldService,
VersionService versionService,
OrderedPriorityHelper orderedPriorityHelper,
IssueIndexService issueIndexService) |
| Modifier and Type | Method and Description |
|---|---|
ServiceOutcome<RapidView> |
createRapidViewWithProjects(String rapidViewName,
RapidViewPreset rapidViewPreset,
List<com.atlassian.jira.project.Project> projects)
Creates a rapid view for a list of projects
|
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
|
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
|
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
|
@Autowired
public SampleDataGeneratorImpl(com.atlassian.jira.plugins.importer.sample.SampleDataImporter importer,
AgileProjectConfigurator agileProjectConfigurator,
com.atlassian.jira.config.properties.ApplicationProperties applicationProperties,
com.atlassian.jira.util.I18nHelper.BeanFactory i18nBeanFactory,
com.atlassian.plugin.PluginAccessor pluginAccessor,
SprintManager sprintManager,
WorkflowService workflowService,
com.atlassian.jira.issue.CustomFieldManager customFieldManager,
com.atlassian.jira.security.JiraAuthenticationContext jiraAuthenticationContext,
SimplifiedWorkflowService simplifiedWorkflowService,
LexoRankCustomFieldService rankCustomFieldService,
com.atlassian.jira.project.ProjectManager projectManager,
com.atlassian.jira.issue.IssueManager issueManager,
LexoRankManager lexoRankManager,
RapidViewHelper rapidViewHelper,
RapidViewPresetService rapidViewPresetService,
ColumnService columnService,
com.atlassian.jira.issue.IssueFactory issueFactory,
IssueTypeService issueTypeService,
ProjectService projectService,
EpicCustomFieldService epicCustomFieldService,
VersionService versionService,
OrderedPriorityHelper orderedPriorityHelper,
IssueIndexService issueIndexService)
public ServiceOutcome<com.atlassian.jira.project.Project> createSampleKanbanData(String projectKey, String projectName, io.atlassian.fugue.Option<String> projectLeadUserName)
SampleDataGeneratorcreateSampleKanbanData in interface SampleDataGeneratorprojectLeadUserName - an Option which can contain the user name of the lead for the project to be createdpublic ServiceOutcome<com.atlassian.jira.project.Project> createSampleScrumData(String projectKey, String projectName, io.atlassian.fugue.Option<String> projectLeadUserName)
SampleDataGeneratorcreateSampleScrumData in interface SampleDataGeneratorprojectKey - the key for the project to be createdprojectName - the name for the project to be createdprojectLeadUserName - an Option which can contain the user name of the lead for the project to be createdpublic ServiceOutcome<com.atlassian.jira.project.Project> importSampleDataFromUrl(String projectKey, String projectName, io.atlassian.fugue.Option<String> projectLeadUserName, SimplifiedWorkflowPresets projectWorkflow, URL sampleDataUrl, ProjectType projectType)
SampleDataGeneratorimportSampleDataFromUrl in interface SampleDataGeneratorprojectKey - the key for the project to be createdprojectName - the name for the project to be createdprojectLeadUserName - an Option which 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 typepublic ServiceOutcome<RapidView> createRapidViewWithProjects(String rapidViewName, RapidViewPreset rapidViewPreset, List<com.atlassian.jira.project.Project> projects)
SampleDataGeneratorcreateRapidViewWithProjects in interface SampleDataGeneratorrapidViewName - 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 viewCopyright © 2007–2025 Atlassian. All rights reserved.