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
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.