WTP - I need validate that "Create" action isn't launched if a cascade selection customfield hasn't the right value

In https://bitbucket.org/fcarmario/jira-workflow-toolbox/wiki/others/ParserI have read:

Text-String: this type of data represents any kind of text or character string. Any field type or data type is susceptible of being transformed to text, so any field can be referenced as a text-string value using the following notation: %{nnnnn}, and %{nnnnn.i} for Cascading Select or Multi-Cascading Select fields, where i is the index that represents the level to be accessed. (i = 0 is used for base level).


My scenario is:

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:
Servicios No Planificables/Incidencias
Servicios No Planificables/Servicios
Servicios No Planificables/Cambios
Proyectos/Proyectos menores

4.- I need to validate that an issue of "INCIDENCIA" issue type can't be created if "Área/Subárea" is not equal to "Servicios No Planificables/Incidencias"

5.- I have defined in INCIDENCIAS workflow, in Create action the following validator:

If parsed text "#Área/Subárea#" matches the following parsed regular expression: (#Área/Subárea.1#="Incidencias"). Message to show when validation fails: Por favor, seleccione la categoría correspondiente a las incidencias.


To do this I have included in the validator definition the following condition:

{%11300.1}="Incidencias"

But allways, when I try to create an issue of type INCIDENCIAS, the error message defined in the validator appears. It doesn't matter if Área/Subárea has de rigth value.

2 answers

1 accepted

Hi,

I have answered you in JIRA Workflow Toolbox Help Forum since you have posted the same question there.

Regards,

Fidel

Thanks a lot! It has worked!!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Marketplace Apps

Three tips for boosting your board's efficiency with Story Maps

Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...

863 views 2 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you