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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.