Versions Compared

Key

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

Contents

Table of Contents
maxLevel2
excludeSee also

One of the best features in Power Scripts is customizing workflows. Using the power of SIL, you can add conditions, validators and post functions on any transition from your workflow.

Writing

...

validators, post functions, and conditions

After install Power Scripts for Jira, go to the Administration > Workflows page and create a workflow, associated with a project.

...

Note
titleNote

For the best experience, we recommend Google Chrome or Mozilla Firefox.

Return codes

Returns codes are different for validators, conditions and post functions.

For

...

validators

Code Block
return false, "assignee", "We have failed, assignee is not ok";

...

For example, you can check whether certain fields were filled out during a workflow transition. To do that, use the hasInput routine.

For

...

conditions

Code Block
return false; //to signal that condition is not fullfilled.

Just tell Jira this condition is not fullfiled.

For post functions

...

Code Block
return;

return ends the program, any values are ignored.

...

Finally, you have the error notifier which tells you whether the program is correct. If there are any errors, open the program for a more detailed description of the cause. If the program is correct, this line will be blank.

See also