Versions Compared

Key

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


Section


Column
width30%600px


Panel
borderColor#333f48
bgColor#FFFFFF
titleColor#eeeeee
borderWidth1
titleBGColor#333f48
borderStylesolid
titleOn this page

Table of Contents
maxLevel1



Column




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 user enter other than above listed values, validation need to happen and the workflow transition should not be changed, then it need to throw error saying 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

Incoming Links
pageBoolean condition and validator with math, . date-time or text-string terms
labelsexample



Related Usage Examples

Content by Label
showSpacefalse
cqllabel = "example" and label = "custom-field"