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 edited

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
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events