Skip to end of banner
Go to start of banner

getWorkflowTransition

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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


  • No labels