It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Scriptrunner behavior to set the display name(label) of a custom field is not executing on view Edited

Hi...I have a very simple behavior on a multi line text field to set its label. I put these couple of lines of code in the server side script of the behavior associated to the field:

def field = getFieldById(getFieldChanged())
field.setLabel("My Custom Label")

And of course I mapped it to the project/all issues types.

The problem I am having is that the behavior is executing when I create a new jira issue and when I edit the issue but not when I view the issue.

Any assistance is greatly appreciated.

Thank youimage.png

2 answers

On create, the behavior executes:




On edit, the behavior executes:



0 votes
Antoine_Berry Community Leader Oct 02, 2019

Hi @Tomas Arguinzones ,

Unfortunately behaviours do not work on View Issue screens, as mentioned here. You can find workarounds on this topic as well.


Hi @Antoine_Berry  Thank you for your assistance. Yup, I just confirmed that with scriptrunner tech support as well (I was hoping the documentation was not up to date :- )


Thank you for your assistance

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Keep your team in the loop with Team @mentions in Jira Software!

Hi everyone! My name is Jenny, a Product Manager at Atlassian. After launching Team @mentions in Confluence, we heard a lot of positive feedback from customers that they love how easy it is to @men...

561 views 6 18
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you