How to make a field mandatory based on a selection made in another field.

This article requires fixes

This article has been Flagged for fixing. Use caution when using it and fix it if you have Publisher rights.

Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.

Summary

While transitioning an issue from one status to another, if a particular field value is selected, we need to enforce the mandatory status of another field. 

Environment

Jira Cloud

Solution


  1. Create two workflow transitions between the source and destination status.

Transition1:


Transition2:







     2a. In one transition, add "Value Field Condition" as when  "FieldA" = "a", 

   2b. Please add a "Field Required Validator" and select the field that should be made mandatory as attached below and add a transition screen that contains the respective field.

In this way, when a specific field value is selected by the user, an error message will be popped up and request the user to enter value for another field.


3. For another workflow transition as created in Step1, please add "Value Field Condition" and give the parameters, as when "FieldA" != "a" OR when "FieldA" is equal to NULL

This way depending upon what transition we choose, the custom field will show as optional or mandatory.




Last modified on Jun 28, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.