Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi everyone,
I am a new and I have a question which need to ask that is how to get current issues Status using serverside script on behaviours-plugin? such as If current-status is "Open" then customfield will be hidden and required. If someone who can provide full script and description will be better, because I am a new so I have more detail for me to be a expert. Thank you very much!
Hi,
Please use the below code for the above requirement,
def status= underlyingIssue.getStatus().getName()
def field = getFieldByName("*custom field name here*") if(status.toString().equals("Open")){ field.setRequired(true) }
-Praveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.