Versions Compared

Key

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

Table of Contents
maxLevel1

Example: Validation on the value of a Cascading Select field

  1. I have a issue type INCIDENCIA
  2. I have a custom field of Cascading Select type named "Área/Subárea". 
  3. The correct values for "Área/Subárea" area: 
    1. Servicios No Planificables/Incidencias 
    2. Servicios No Planificables/Servicios 
    3. Servicios No Planificables/Cambios 
    4. Proyectos/Proyectos menores 
  4. I need to validate that an issue of "INCIDENCIA" issue type can't be created if "Área/Subáreea" is not equal to "Servicios No Planificables/Incidencias
  5. I have defined in INCIDENCIAS workflow

If you use Boolean validator with math, date-time or text-string terms you have to use the following configuration:

Image Added

Text to be parsed: %{13700.1} = "Incidencias"Image Removed


Note that:

Field code for field "Área/Subárea" is %{13700}.

This field code depends on each Jira instance. You can find the code for you particular Jira instance in the field list available the validator configuration screen.

Once configured, you transition will look like this:



You can also use another feature of Jira Workflow Toolbox: Validation based on regular expression. If you use that feature you should use the following configuration:


Image RemovedImage Added



Other examples of that function

Boolean validator with math, date-time or text-string terms

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


Validation based on regular expression

Incoming Links
pageCondition and validaton based on regular expression
labelsexample

Related Usage Examples

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