public interface WorkflowService
Modifier and Type | Method and Description |
---|---|
ServiceOutcome<Void> |
associateSchemeToProject(com.atlassian.jira.project.Project project,
com.atlassian.jira.scheme.Scheme scheme)
Associates scheme to project
|
ServiceOutcome<Void> |
associateWorkflowToSchemeAsDefault(String workflowName,
com.atlassian.jira.scheme.Scheme scheme)
Associates a workflow to the given scheme, makes it the default workflow for that scheme
|
ServiceOutcome<com.atlassian.jira.workflow.JiraWorkflow> |
copyWorkflow(com.atlassian.jira.user.ApplicationUser user,
com.atlassian.jira.workflow.JiraWorkflow workflow,
String newName,
String newDescription)
Creates a new copy of the existing workflow, with the specified name and description.
|
ServiceOutcome<Void> |
deleteScheme(String name)
Delete a workflow scheme with the specified name
|
ServiceOutcome<Void> |
deleteWorkflow(String name)
Delete a workflow with the specified name.
|
ServiceOutcome<Boolean> |
doesWorkflowSchemeExist(String name)
Does a workflow scheme with the specified name exist?
|
Set<com.atlassian.jira.issue.status.Status> |
getAccessibleStatuses(com.atlassian.jira.user.ApplicationUser user,
com.atlassian.query.Query query)
Get the list of accessible statuses for issues potentially returned by the current query.
|
Set<com.atlassian.jira.issue.status.Status> |
getAllActiveWorkflowStatusObjects()
Get all active workflow statuses available in the system
|
Set<com.atlassian.jira.issue.status.Status> |
getAllWorkflowStatusObjects()
Get all workflow statuses available in the system
|
Collection<com.atlassian.jira.workflow.JiraWorkflow> |
getJiraWorkflows(com.atlassian.jira.project.Project project)
Given a project, returns all JIRA workflows which are associated to that project
Empty on error
|
Collection<com.atlassian.jira.workflow.JiraWorkflow> |
getJiraWorkflows(com.atlassian.jira.project.Project project,
String issueTypeId)
Given a project and an issue type id, returns the JIRA Workflow which is associated to that project for that issue type
Empty on error
|
com.atlassian.jira.issue.status.Status |
getStatusByName(String statusName)
Get a status given its name
|
ServiceOutcome<com.atlassian.jira.workflow.JiraWorkflow> |
getWorkflow(com.atlassian.jira.user.ApplicationUser user,
String workflowName)
Retrieve the workflow with the specified name
|
ServiceOutcome<com.atlassian.jira.scheme.Scheme> |
getWorkflowSchemeForProject(com.atlassian.jira.project.Project project)
Returns the scheme currently associated to the specified
Project . |
ServiceOutcome<Collection<com.atlassian.jira.workflow.JiraWorkflow>> |
getWorkflowsForProject(com.atlassian.jira.project.Project project)
Retrieve the workflows that are in use for the specified
Project . |
com.atlassian.jira.issue.status.Status |
getWorkflowStatusObject(String statusId)
Get the status object for a given id
|
ServiceOutcome<Boolean> |
isStatusInitialStatus(com.atlassian.jira.workflow.JiraWorkflow workflow,
com.atlassian.jira.issue.status.Status status)
Is this status the initial status for this workflow?
|
ServiceOutcome<Boolean> |
isWorkflowSchemeActive(String name)
Is the workflow scheme with the specified name active?
|
static final String SERVICE
Set<com.atlassian.jira.issue.status.Status> getAllWorkflowStatusObjects()
Set<com.atlassian.jira.issue.status.Status> getAllActiveWorkflowStatusObjects()
com.atlassian.jira.issue.status.Status getWorkflowStatusObject(String statusId)
statusId
- the id to look upcom.atlassian.jira.issue.status.Status getStatusByName(String statusName)
@NotNull Set<com.atlassian.jira.issue.status.Status> getAccessibleStatuses(com.atlassian.jira.user.ApplicationUser user, com.atlassian.query.Query query)
user
- the user who would be performing the searchquery
- the query being asked about@NotNull ServiceOutcome<Boolean> isStatusInitialStatus(@NotNull com.atlassian.jira.workflow.JiraWorkflow workflow, @NotNull com.atlassian.jira.issue.status.Status status)
workflow
- the workflowstatus
- the status@NotNull ServiceOutcome<com.atlassian.jira.workflow.JiraWorkflow> copyWorkflow(com.atlassian.jira.user.ApplicationUser user, @NotNull com.atlassian.jira.workflow.JiraWorkflow workflow, @NotNull String newName, @NotNull String newDescription)
user
- the userworkflow
- the original workflownewName
- the new namenewDescription
- the new description@NotNull ServiceOutcome<com.atlassian.jira.workflow.JiraWorkflow> getWorkflow(com.atlassian.jira.user.ApplicationUser user, @NotNull String workflowName)
user
- the userworkflowName
- the workflow name@NotNull ServiceOutcome<Collection<com.atlassian.jira.workflow.JiraWorkflow>> getWorkflowsForProject(com.atlassian.jira.project.Project project)
Project
.project
- the project@NotNull ServiceOutcome<Boolean> doesWorkflowSchemeExist(String name)
name
- the name@NotNull ServiceOutcome<com.atlassian.jira.scheme.Scheme> getWorkflowSchemeForProject(com.atlassian.jira.project.Project project)
Project
. null
will be the result
if there is no scheme associated (i.e. the Default Scheme is in use).project
- the project@NotNull ServiceOutcome<Boolean> isWorkflowSchemeActive(String name)
name
- the name@NotNull ServiceOutcome<Void> deleteScheme(String name)
name
- workflow scheme name@NotNull ServiceOutcome<Void> deleteWorkflow(String name)
name
- workflow name@NotNull Collection<com.atlassian.jira.workflow.JiraWorkflow> getJiraWorkflows(com.atlassian.jira.project.Project project)
@NotNull Collection<com.atlassian.jira.workflow.JiraWorkflow> getJiraWorkflows(com.atlassian.jira.project.Project project, String issueTypeId)
@NotNull ServiceOutcome<Void> associateWorkflowToSchemeAsDefault(String workflowName, com.atlassian.jira.scheme.Scheme scheme)
@NotNull ServiceOutcome<Void> associateSchemeToProject(com.atlassian.jira.project.Project project, com.atlassian.jira.scheme.Scheme scheme)
Copyright © 2007–2015 Atlassian. All rights reserved.