🚀 JWT 3.0 is out 🚀 

The app was completely overhauled, and so was the documentation: Jira Workflow Toolbox (Server/Data Center) Home

The page you are viewing is still valid for all app versions prior to 3.0.

On this page

Example: Validate a custom field "Story Points" has been given a value in Fibonacci sequence

We are looking for a functionality that story point fields, which we request users to enter only 1, 2, 3, 5, 8,13, 21, 34 and 55 as story points. We need to enforce users to enter only these listed values, can we enforce this validation in workflows? When the user enter other than the previous listed values, validation needs to happen and the workflow transition should not be changed, then it needs to throw an error saying : The provided values are not supported.

You can do it easily using Boolean validator with math, date-time or text-string terms with the following configuration:

Boolean expression used is: {13700} in [1, 2, 3, 5, 8, 13, 21, 34, 55]

Note that:

  • {13700} is code for numeric value of custom field "Story Points". This code depends on each particular Jira instance
  • Beware not to confuse with %{13700}, which is field code that returns a string value instead of a numeric value

Once configured, your transition will look like this:

Other examples of that function

Related Usage Examples