Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
titleAvailability

This routine is available starting with SIL Engine 4.8.0.4.

...

getAllWorkflows()

Description

...

Parameter name

...

Type

...

Required

...

Description

...

filterName

...

string

...

Yes

...

Excerpt

Update one ore more attributes for the provided filter. 

Parameters

Retrieves a list of all workflows in the Jira environment.

Return type

boolean

Returns true if the filter was updated. False otherwise.JWorkflow[]

Returns a list of all workflow representations.

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


Info

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

...