|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorkflowService
Provides workflow related service methods
Field Summary | |
---|---|
static java.lang.String |
SERVICE
|
Method Summary | |
---|---|
ServiceOutcome<java.lang.Void> |
associateSchemeToProject(com.atlassian.jira.project.Project project,
com.atlassian.jira.scheme.Scheme scheme)
Associates scheme to project |
ServiceOutcome<java.lang.Void> |
associateWorkflowToSchemeAsDefault(java.lang.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.crowd.embedded.api.User user,
com.atlassian.jira.workflow.JiraWorkflow workflow,
java.lang.String newName,
java.lang.String newDescription)
Creates a new copy of the existing workflow, with the specified name and description. |
ServiceOutcome<java.lang.Void> |
deleteScheme(java.lang.String name)
Delete a workflow scheme with the specified name |
ServiceOutcome<java.lang.Void> |
deleteWorkflow(java.lang.String name)
Delete a workflow with the specified name. |
ServiceOutcome<java.lang.Boolean> |
doesWorkflowSchemeExist(java.lang.String name)
Does a workflow scheme with the specified name exist? |
java.util.Set<com.atlassian.jira.issue.status.Status> |
getAccessibleStatuses(com.atlassian.crowd.embedded.api.User user,
com.atlassian.query.Query query)
Get the list of accessible statuses for issues potentially returned by the current query. |
java.util.Set<com.atlassian.jira.issue.status.Status> |
getAllWorkflowStatusObjects()
Get all workflow statuses available in the system |
java.util.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 |
java.util.Collection<com.atlassian.jira.workflow.JiraWorkflow> |
getJiraWorkflows(com.atlassian.jira.project.Project project,
java.lang.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(java.lang.String statusName)
Get a status given its name |
ServiceOutcome<com.atlassian.jira.workflow.JiraWorkflow> |
getWorkflow(com.atlassian.crowd.embedded.api.User user,
java.lang.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<java.util.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(java.lang.String statusId)
Get the status object for a given id |
ServiceOutcome<java.lang.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<java.lang.Boolean> |
isWorkflowSchemeActive(java.lang.String name)
Is the workflow scheme with the specified name active? |
Field Detail |
---|
static final java.lang.String SERVICE
Method Detail |
---|
java.util.Set<com.atlassian.jira.issue.status.Status> getAllWorkflowStatusObjects()
com.atlassian.jira.issue.status.Status getWorkflowStatusObject(java.lang.String statusId)
statusId
- the id to look up
com.atlassian.jira.issue.status.Status getStatusByName(java.lang.String statusName)
@NotNull java.util.Set<com.atlassian.jira.issue.status.Status> getAccessibleStatuses(com.atlassian.crowd.embedded.api.User user, com.atlassian.query.Query query)
user
- the user who would be performing the searchquery
- the query being asked about
@NotNull ServiceOutcome<java.lang.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.crowd.embedded.api.User user, @NotNull com.atlassian.jira.workflow.JiraWorkflow workflow, @NotNull java.lang.String newName, @NotNull java.lang.String newDescription)
user
- the userworkflow
- the original workflownewName
- the new namenewDescription
- the new description
@NotNull ServiceOutcome<com.atlassian.jira.workflow.JiraWorkflow> getWorkflow(com.atlassian.crowd.embedded.api.User user, @NotNull java.lang.String workflowName)
user
- the userworkflowName
- the workflow name
@NotNull ServiceOutcome<java.util.Collection<com.atlassian.jira.workflow.JiraWorkflow>> getWorkflowsForProject(com.atlassian.jira.project.Project project)
Project
.
project
- the project
@NotNull ServiceOutcome<java.lang.Boolean> doesWorkflowSchemeExist(java.lang.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<java.lang.Boolean> isWorkflowSchemeActive(java.lang.String name)
name
- the name
@NotNull ServiceOutcome<java.lang.Void> deleteScheme(java.lang.String name)
name
- workflow scheme name
@NotNull ServiceOutcome<java.lang.Void> deleteWorkflow(java.lang.String name)
name
- workflow name
@NotNull java.util.Collection<com.atlassian.jira.workflow.JiraWorkflow> getJiraWorkflows(com.atlassian.jira.project.Project project)
@NotNull java.util.Collection<com.atlassian.jira.workflow.JiraWorkflow> getJiraWorkflows(com.atlassian.jira.project.Project project, java.lang.String issueTypeId)
@NotNull ServiceOutcome<java.lang.Void> associateWorkflowToSchemeAsDefault(java.lang.String workflowName, com.atlassian.jira.scheme.Scheme scheme)
@NotNull ServiceOutcome<java.lang.Void> associateSchemeToProject(com.atlassian.jira.project.Project project, com.atlassian.jira.scheme.Scheme scheme)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |