How we put validations in JSM Forms custom fields in Portal...???

Gunjan Kumar October 24, 2024

validation in jsm form portal

1 answer

1 vote
Humashankar VJ
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.
October 24, 2024

Hi @Gunjan Kumar 

Consider using Workflow Validators.

These validators ensure specific conditions are met before transitioning issues to new statuses, such as verifying form submission before resolution or approval.

To add Workflow Validators, navigate to the project settings, select the relevant workflow, and choose the desired transition.

To learn more - How to add validator on forms via workflow or automation? | Jira | Atlassian Documentation

Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards

Gunjan Kumar October 24, 2024

Is there another way to do this without using workflows or automations?

Like Humashankar VJ likes this
Humashankar VJ
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.
October 24, 2024

@Gunjan Kumar 

Other options worth trying would be

BY modifying the Field Configuration. Navigate to Jira Administration > Issues > Field Configurations, edit your JSM project's configuration, and set the desired custom field as "Required".

Otherwise, utilize the Dynamic Forms Extension. In your JSM project settings, access Customer Form Extension, select the dynamic field to validate, and click "Validators" in the Options column. Choose a validation rule and set the validator value to enforce requirements such as:

 - Required fields

- Character count limits

- Numeric value constraints

- URL and email format checks

This enables advanced validation options for enhanced form control and data accuracy.

Best Regards

Suggest an answer

Log in or Sign up to answer