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:

image.png

 

 

On edit, the behavior executes:

 

image.png

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.

Antoine

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

The add-in you’ve been waiting for: Jira Cloud for Excel 🙌

Introducing Jira Cloud for Excel Here at the product integrations team at Atlassian, we are thrilled to announce the new Jira Cloud for Excel add-in! This add-in lets you export Jira data directly ...

888 views 7 24
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