...
...
Warning |
---|
Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here ! |
Info | ||
---|---|---|
| ||
This routine is available starting with SIL Engine 4.8.0.4. |
...
getAllWorkflowTransitions(workflowName)
Description
Excerpt |
---|
Update one ore more attributes for the provided filter. Retrieves a list of workflow transition actions. |
Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
filterNameworkflowName | string | Yes | The name of the filterworkflow. |
Return type
boolean
Returns true if the filter was updated. False otherwise.JWorkflowAction[]
Returns a list of workflow transitions representing a single workflow.
The object contains:
- Name of the transition
- The originating status
- List of Java classes used for the transition's conditions, validators, and post functions
Example
Code Block |
---|
JFilter filter;
filter.id=10405;
filter.name = "Updatedname";
filter.description = "New Description";
filter.query = "project=TEST AND assignee=admin";
filter.owner = "admin";
boolean a = admUpdateFilter(filter);
runnerLog("Filter updated? "+ a + "\n" +
"The update filter is: "+ admGetFilterById("10405")); |
Info |
The filter can be partially updated by specifying only the attribute needed to be updated in the JFilter structure.string workflowName = "Software Simplified Workflow for Project TEST";
JWorkflowAction[] actions = getAllWorkflowTransitions(workflowName);
return actions;
// String representation
// Create|||com.atlassian.jira.workflow.validator.PermissionValidator|com.atlassian.jira.workflow.function.issue.IssueCreateFunction|com.atlassian.jira.workflow.function.issue.IssueReindexFunction|com.atlassian.jira.workflow.function.event.FireIssueEventFunction|To Do|Done|||com.atlassian.jira.workflow.function.issue.UpdateIssueFieldFunction|com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction|com.atlassian.jira.workflow.function.misc.CreateCommentFunction|com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction|com.atlassian.jira.workflow.function.issue.IssueReindexFunction|com.atlassian.jira.workflow.function.event.FireIssueEventFunction|In Progress|Done|||com.keplerrominfo.jira.plugins.jjupin.workflow.SilPostFunction|com.atlassian.jira.workflow.function.issue.UpdateIssueFieldFunction|com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction|com.atlassian.jira.workflow.function.misc.CreateCommentFunction|com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction|com.atlassian.jira.workflow.function.issue.IssueReindexFunction|com.atlassian.jira.workflow.function.event.FireIssueEventFunction|Done|Done|||com.atlassian.jira.workflow.function.issue.UpdateIssueFieldFunction|com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction|com.atlassian.jira.workflow.function.misc.CreateCommentFunction|com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction|com.atlassian.jira.workflow.function.issue.IssueReindexFunction|com.atlassian.jira.workflow.function.event.FireIssueEventFunction
// JSON representation
/*
[{
"name": "Create",
"fromStatus": null,
"conditions": [],
"validators": ["com.atlassian.jira.workflow.validator.PermissionValidator"],
"postFunctions": ["com.atlassian.jira.workflow.function.issue.IssueCreateFunction", "com.atlassian.jira.workflow.function.issue.IssueReindexFunction", "com.atlassian.jira.workflow.function.event.FireIssueEventFunction"]
}, {
"name": "To Do",
"fromStatus": "Done",
"conditions": [],
"validators": [],
"postFunctions": ["com.atlassian.jira.workflow.function.issue.UpdateIssueFieldFunction", "com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction", "com.atlassian.jira.workflow.function.misc.CreateCommentFunction", "com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction", "com.atlassian.jira.workflow.function.issue.IssueReindexFunction", "com.atlassian.jira.workflow.function.event.FireIssueEventFunction"]
}, {
"name": "In Progress",
"fromStatus": "Done",
"conditions": [],
"validators": [],
"postFunctions": ["com.keplerrominfo.jira.plugins.jjupin.workflow.SilPostFunction", "com.atlassian.jira.workflow.function.issue.UpdateIssueFieldFunction", "com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction", "com.atlassian.jira.workflow.function.misc.CreateCommentFunction", "com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction", "com.atlassian.jira.workflow.function.issue.IssueReindexFunction", "com.atlassian.jira.workflow.function.event.FireIssueEventFunction"]
}, {
"name": "Done",
"fromStatus": "Done",
"conditions": [],
"validators": [],
"postFunctions": ["com.atlassian.jira.workflow.function.issue.UpdateIssueFieldFunction", "com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction", "com.atlassian.jira.workflow.function.misc.CreateCommentFunction", "com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction", "com.atlassian.jira.workflow.function.issue.IssueReindexFunction", "com.atlassian.jira.workflow.function.event.FireIssueEventFunction"]
}]
*/ |