The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
  • Community
  • Q&A
  • Jira
  • Questions
  • Scriptrunner behavior to set the display name(label) of a custom field is not executing on view

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

Tomas Arguinzones Yahoo
Contributor
October 1, 2019

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

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Antoine Berry
Community Champion
October 2, 2019

Hi @Tomas Arguinzones Yahoo ,

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

Antoine

Tomas Arguinzones Yahoo
Contributor
October 2, 2019

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

0 votes
Tomas Arguinzones Yahoo
Contributor
October 1, 2019

On create, the behavior executes:

image.png

 

 

On edit, the behavior executes:

 

image.png