admSetProjectWorkflowScheme
Description
Updates the project workflow scheme. Both the scheme and the project must exist.
Parameters
Return Type
Boolean (true/false)
Returns 'true' if the project was updated and 'false' if not.
Example
Example 1
When using an empty or null scheme name, the function will set the default workflow scheme on the specified project. In other words the code will look like this:
string pkey = "TEST";
string schemeName;
return admSetProjectWorkflowScheme(pkey, schemeName);
It will return 'true' and will set the default Jira workflow scheme (Default Workflow Scheme). Otherwise, when using a nonexistent workflow scheme name, the function will return 'false' and will not make any change. It equivalents to the following code:
string pkey = "TEST";
string schemeName = "";
return admSetProjectWorkflowScheme(pkey, schemeName);
Updating the project workflow scheme happens smoothly only if the statuses in the destination scheme match the ones in the source scheme in both their name and step id. Otherwise, the workflow scheme update might cause some failures in issue transitioning. To avoid having these, it is mandatory to perform a Workflow Integrity Check and fix the errors for the workflow current step entries of the project.