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
Join PM Evangelist, Axel Sooriah, & Product Ops. Consultant & Advisor, Jenny Wanger, as they unpack the role of product ops and discuss key takeaways in Atlassian’s ‘The Product Ops Mission’ guide. They’ll answer your questions live on May 6 at 9:00am PT.
Register here ⬇️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.