getAllWorkflows

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

getAllWorkflows()

Description

Retrieves a list of all workflows in the Jira environment.

Return type

JWorkflow[]

Returns a list of all workflow representations.

Example

JWorkflow[] workflows = getAllWorkflows();
return workflows;


// String representation
// 0|jira|live|System||false|Open|In Progress|Resolved|Reopened|Closed|Create Issue|Close Issue|Reopen Issue|Start Progress|Resolve Issue|Stop Progress|Close Issue|10000|classic default workflow|live|User Built||false|Open|In Progress|Resolved|Reopened|Closed|Create Issue|Close Issue|Reopen Issue|Start Progress|Resolve Issue|Stop Progress|Close Issue


// JSON representation
/*
[{
	"id": "0",
	"name": "jira",
	"mode": "live",
	"type": "System",
	"assocIssueType": null,
	"active": false,
	"statuses": ["Open", "In Progress", "Resolved", "Reopened", "Closed"],
	"transitions": ["Create Issue", "Close Issue", "Reopen Issue", "Start Progress", "Resolve Issue", "Stop Progress", "Close Issue"]
}, {
	"id": "10000",
	"name": "classic default workflow",
	"mode": "live",
	"type": "User Built",
	"assocIssueType": null,
	"active": false,
	"statuses": ["Open", "In Progress", "Resolved", "Reopened", "Closed"],
	"transitions": ["Create Issue", "Close Issue", "Reopen Issue", "Start Progress", "Resolve Issue", "Stop Progress", "Close Issue"]
}]
*/

The filter can be partially updated by specifying only the attribute needed to be updated in the JFilter structure.