Hi All,
I am trying to prefill the Team field using Scriptrunner Behaviours in create screen. But it is not working.
Is there anyone who faced this issue and resolved before?
Can you please clarify what type of field is the Team Field?
If you intend to prefill the value to the field, you will need to use the Behaviour Initialiser.
Below is a sample Behaviour Initialiser code for your reference:-
def field = getFieldByName('Field 1')
field.setFormValue('Testing 123')
Please note that the working sample code above is not 100% exact to your environment.
Also, if you intend for this Behaviour to take effect only on the Create screen and not other screens, you will need to add an additional condition to it as shown below:-
if (!underlyingIssue) {
def field = getFieldByName('Field 1')
field.setFormValue('Testing 123')
}
Hence, you will need to make the required modifications.
I am looking forward to your feedback and clarification.
Thank you and Kind regards,
Ram
Hi @Ram Kumar Aravindakshan _Adaptavist_ ,
Thanks for the feedback. Please find the below screenshot
This Team field comes from Advanced Roadmaps.
I tried to use your recommendation, but unfortunately it is not working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.