Hi
I have created a field A and two other fields of date type (e.g. date1 and date2).
I want to compare these two date fields when the ticket status transition to check if field A is mandatory or not.
For example.
if date1 >= date2, field A is mandatory, otherwise the ticket status cannot be transfer to the next status.
If date1 < date2, field A does not need to be entered and can be transferred according to the workflow.
My question is how do I set up this validation in jira? Would be great if someone can help on this scenario.
Hi @Cuijun Shen yes it is doable but not out of the box. You need to install App like https://marketplace.atlassian.com/apps/292/jira-misc-workflow-extensions-jmwe?hosting=cloud&tab=overview (documentation - https://innovalog.atlassian.net/wiki/spaces/JMWEC/pages/1005420569/Use+cases+for+validators) or https://marketplace.atlassian.com/apps/6820/scriptrunner-for-jira?hosting=cloud&tab=overview (documentation - https://docs.adaptavist.com/sr4jc/latest/features/workflow-extensions/validators/example-validators) to be able to prepare your custom validator.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.