I am using Jira-Cloud. I have a customfield-1 with a drop down having 4 options. I want to make a another customfield-2 mandatory while creating an issue if a one particular option is selected by a user in customfield-1.
For other three options selected in customfield-1 the customfield-2 should be optional.
How can this be achieved using Jira Automation or Scriptrunner.