Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Hi Team, How to validate Custom field B value Based on Custom field A value

Durga Prasad July 27, 2025

Hi Team,

How to validate Custom field B value Based on Custom field A value

For suppose i have one field name
(ABC) single select field 
1
2
3
if  i can select value 1 then 
(XYZ) Custom field is mandatory

when i select  2 or 3
(XYZ) Custom field is non-mandatory


Please share anyone of your suggestions
I would like ready to hear


Thanks
Durga Prasad


1 answer

0 votes
Dwight Holman
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.
July 27, 2025

You don't mention when you what the validation to run, or the type of project you are using. A bit more context would help the community answer more directly. 

If you want the UI to validate custom fields when editing them - I don't think there is any existing Jira feature for that. But you could use Jira automation to do it - feedback would be delayed, and could be via an email/notification or issue comment. 

Assuming you want to validate this in a workflow transition (changing the work item status), this is common to ensure data is complete or valid before the issue can be closed or resolved.

I know of two ways to do this - and they work differently.

  1. Use a workflow validator - we use ScriptRunner to do this kind of thing. This has the benefit of preventing the issue status change. I think you'd need an app to do the kind of validation you describe.
  2. Use Jira Automation - this also works well for more complex logic, but the downsides are:
    • These are asynchronous - they run after a few seconds. i.e., they cannot give users immediate feedback and they cannot prevent a workflow transition.
    • The issue would transition, to the next state, and then need to be transitioned back by the automation if the data is not valid.

 

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events