How can I check as a validator in workflow transition, that a Cascading List field is not empty?

Tilman Ulshoefer
Contributor
November 14, 2023

Dear everyone,
I want to make sure that my cascading list field "Agile Release Train/Team" is not empty during a workflow transition.

When I add the validator "Fields Required (JSU)", Jira only checks the first level (parent) of the field, allowing the children keep being empty.

Therefore, I want to test whether a Regular Expression Check (JSU) works. What value do I need to enter into the field "Regular expression" to check that the user gets an error if the parent has a valid value, however, child = none?

Screenshot 2023-11-14 101052.png

2 answers

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 14, 2023

Hi @Tilman Ulshoefer 

This should be possible. I found an old KB article from JSU (before Appfire bought them).

Please see the article here. I think should solve your issue,

Tilman Ulshoefer
Contributor
November 16, 2023

Thank you for this link, Marc. 


Unfortunately, we failed benefiting from it. My level 1 value is "ART1", and the two level 2 fields are "Team1" and "Team2". We tried everything like (ART1|((Team1|Team2), .+?)), however, did not get it working.

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 17, 2023

Hi @Tilman Ulshoefer 

I would reach out to Appfire the vendor and raise an issue at their end to see if and how this configuration is possible.

Tilman Ulshoefer
Contributor
November 17, 2023

Thank you for your advice, just created a request with appfire, Marc.

Like Marc - Devoteam likes this
Tilman Ulshoefer
Contributor
November 20, 2023
Giovanni Melai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 20, 2024

Hi @Tilman Ulshoefer

I'm curious how you solved this issue, but I can't see the case you linked. Could you please copy/paste the answer here?

Thanks

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 20, 2024

Hi @Tilman Ulshoefer 

Would you be able to showcase the solution appfire provided here.

As you link is to your raised issue and even if I login to appfire support I can't see this, as you would need to share it with me.

This would help other users as well.

Tilman Ulshoefer
Contributor
February 21, 2024

Hello Marc, Giovanni,
Can you read the link I added to the Appfire Ticket on 20.11.2023? There you find the details.
Kind regards, Tilman

Giovanni Melai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 21, 2024

Hi @Tilman Ulshoefer, the issue is that we don't have access to the ticket you linked, it's only available to you. 

Tilman Ulshoefer
Contributor
February 21, 2024

Hello @Giovanni Melai

Understood. This is what Appfire responded and what is working fine:

Expression 1: This expression will check if the child value contains None it will not allow the transition to move. It will allow the transition to move if the child field has any value =>(Default|val|), .+?


Expression 2: This expression will check if both(parent and child) values are None it will not allow to transition. If both values are present it will allow to move the transition => (.+?), .+?


Post Function:
1 Regular Expression Check (JSU)
2 Field to be checked: Select List Single choice
3 Regular expression: (.+?), .+?
4 Concatenate multiple values: true
5 Split on newline characters: false
6 Error message (optional): Need to through error

Like # people like this
0 votes
trung November 14, 2023

hi @Tilman Ulshoefer 

``` When I add the validator "Fields Required (JSU)", Jira only checks the first level (parent) of the field, allowing the children keep being empty.``` 

Have you check the children issues is applied the same workflow like the parent issue ?

Tilman Ulshoefer
Contributor
November 16, 2023

It is not about parent and child issues, trung. It is about parent and child values in a cascading list field, assigned to the same issue.

Like trung likes this

Suggest an answer

Log in or Sign up to answer