Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Forms - field validation

Myles Boyd September 12, 2024

Designing a form, where, due to it's criticality and being free text, we have asked the user to type an input twice

Ignoring the fact they can just copy n paste from one to the other, I was trying to find a way to compare the 2 fields and error if not the same

 

I have set up automation, based on create issue, but was hoping there would be a way to block submit until they match.

Have looked at workflow transition validators, but can't see a way to compare fields.

Any suggestions/ideas appreciated

2 answers

0 votes
Sergio García-Consuegra _Decadis AG_ September 16, 2024

Hi @Myles Boyd ,

My name is Sergio and I'm a member of the support team from Decadis.

As Marc already mentioned, this should be able to be done using Jira Workflow Toolbox for Jira Cloud.

You could use the validator suggested or also our validator Jira expression validator, were you should be able to compare both fields with an expression like the following one:

issue?.customfield_AAAAA== issue?.customfield_AAAA

You should replace AAAAA and BBBBB for the custom field codes you want to compare.

If you have any doubt related to our app, please feel free to contact us through our customer portal! We will gladly assist you with any doubt you have :) 

Best regards,
Sergio 

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.
September 13, 2024

Hi @Myles Boyd 

This could be done by the app Jira Workflow Toolbox.

They have a compare validator, see; https://apps.decadis.net/display/JWTCLOUD/Compare+two+values+validator#expand-Comparisonvalue 

Your text fields in the form, will have to be linked to Jira custom fields. You can use from fields only.

Give it a try, I can't promise it will work.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events