Hi,
We have added a field behaviour. When a certain condition is false, then allow inline edit. when the condition is true, the field should be read only.
import com.atlassian.jira.component.ComponentAccessor;
def req= getFieldByName("Requirements")
def fls= getFieldByName("K B")
def value = fls.getValue()
if(value == "True" )
{
req.setReadOnly(true);
}
else if(value == "False")
{
req.setAllowInlineEdit();
}
Also, we have tried setAllowInlineEdit(Boolean) and AllowInlineEdit functions. But Inline edit is not working.
We are using Jira 8.3.2 and script runner 5.8.0 - p5
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.