• Community
  • Products
  • Jira
  • Questions
  • Behaviour plugin : 'setFormValue' method on reporter customField doesn't load the fullname and the avatar image in the form

Behaviour plugin : 'setFormValue' method on reporter customField doesn't load the fullname and the avatar image in the form

Hi all,

I'm trying to do that with a behavior script:

reporter.setFormValue(user.getName());

This is a simple script and will put only the username in the reporter input field for the form.

Imagine that user change every time the field assignee change, because the groovy is attached to the change of Assignee field.

First time it works correctly, loading the avatar and the fullname. The problem is that, when you change for the second time the value on the field that has a groovy script linked, later JIRA doesn't trigger the action that will put the avatar image and the fullname in the input field (I found it doesn't call setFormValue due to an error in javascript. Please take a look below) .

  • This is the current result:
    image2015-5-28 17:8:4.png
  • This is the expected result after setFormValue

image2015-5-28 17:6:30.png

I found, after some investigation in frebug that error (I suppose related to behaviour plugin because script is not triggered at all due to this error):

image2015-5-29 10:18:0.png

Is there any way in order to fix that on behaviour plugin?

 

Thanks

Luca

4 answers

0 vote

Could you copy to a bug report at https://jamieechlin.atlassian.net/browse/GRV please?

Sure Jamie. I did. Thanks for the support Luca

d[c] is undefined occurs when the custom field who has a behaviour script linked is set to "Required"

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,210 views 13 19
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot