Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Inline edit disabled after adding a behaviour

Arun_Mozhi April 24, 2020

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

1 answer

0 votes
Deleted user February 4, 2021

Hey Arun,

have you managed to get a solution for this? Face the same problem as I want a custom field to not be inline editable through behaviours and conditions,

Cheers

Suggest an answer

Log in or Sign up to answer