The Behaviours plugin disables inline edit :(

I thought I had a major breakthrough for my QA team when I discovered the Behaviours plugin has long been installed on our instance yet totally unused. Finally, I could populate the Description field of bugs with QA's Steps to Reproduce template!!

Alas, it appears that adding a Behaviour to a field disables inline editing of that field from the View Issue screen.

I would really really like to give Bug Descriptions a default value without having to sacrifice inline editing. How can I do that?

Jira 7.1.9 ScriptRunner 4.3.5

2 answers

1 accepted

Hi Todd,

In your version of ScriptRunner, inline editing is automatically disabled when a behavior is added to a field and the user won't be able to use the field on the view screen. One workaround provided is to manually set the field to be editable by placing code like this in the Initialiser Function of the behaviour:

def descField = getFieldById("description")
descField.setAllowInlineEdit(true)

 Josh

Woohoo! That's perfect! Thank you, Josh. The team is singing your praises.

Hi Josh,

Somehow Behaviour Initialiser script is NOT enabling inline edit required for "Summary and Description" fields in Jira.

Description Field Behaviour Inline Editing Screen.PNGPlease refer the attached screen shot where my behaviour script is written using SR version 4.3.16 inside my Jira s/w version 7.2.7

 

-Manju

Even I tried with "current user is reporter" condition added into under "When" and Jira issue was reported by me and still inline edit is disabled...

I would like give permission of Inline Edit to change both Summary and Description fields ONLY to Reporter of the issue in my Jira project.

def desc = getFieldById("description")

Lower-case 'd' for 'description', perhaps?

Todd,

Even I tried with description and summary with first letter Lower case before.

it's not working...

- Manju

solution doesnt work for me.  :( 

Tried placing the setAllowInlineEdit into initializer as well as the actual code on the field. 

  • JIRA SERVER v7.7.1
  • Scriptrunner v5.3.26

Does anyone have a solution for this problem? It is a very big problem for my clients

Please help!

Hi guys,

In one of the later releases, we changed the implementation so when you try to edit inline a field with a behaviour then the edit dialog pop up. 

Now if you still want the inline edit to work without behaviours, then try to disable the inline behaviours module 

Manage Addons -> Adaptavist ScriptRunner for JIRA -> modules -> search for inline edit issue -> disable

Hi Thanos,

I don't understand you. The problem is that we can't inline edit a field whitch also is in a behaviour. For example the field "description". I want it in a behaviour and i want it to edit this inline and not with a pop up edit dialog.

Is there a solution for that problem?

Michiel

Manage Addons -> Adaptavist ScriptRunner for JIRA -> modules -> search for inline edit issue -> disable

that works and i can inline edit the description field. But when i create a new story the behaviour i made (on the Description field) doesn't work...

What is the name of the module that you disabled ? 

Version of ScriptRunner ?

I disabled module --> Behaviour inline edit issue assets

ScriptRunner Version 5.4.11

Hi Thanos,

I have a update ;)

It works fine when i do a create of a new story in the same window. When i try to do a create in another window  (new tab) then i does not work. This is when i use Chrome.

When i use IE both the methods work fine! ;)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

81 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you