getWorkflowTransition

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 !

Availability

This routine is available starting with SIL Engine 4.8.0.4.

Syntax

getWorkflowTransition(workflowName, transtionName)

Description

Retrieves transition information for a single workflow transition.

Parameters

Parameter name

Type

Required

Description

workflowName

string

Yes

The name of the workflow.

transtionNamestringYesThe name of the transition. (Example: Start Progress)

Return type

JWorkflowAction[]

Returns an array of transition objects for a transition of a given name.

Example

string workflowName = "Software Simplified Workflow for Project TEST";
string transtionName = "Create";
JWorkflowAction[] actions = getWorkflowTransition(workflowName, transtionName);
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


// 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"]
}]
*/