When I use this code ...
import org.apache.log4j.Logger
Logger log = Logger.getLogger("com.acme.behaviour.helptexttest")
try {
def summary = getFieldById("summary")
summary.setHelpText("This is the help text")
} catch (Exception ex) {
log.warn("Error message : ${ex.getMessage()}")
}
I'm getting the following results:
I expect the "This is the help text" to show up under the Summary field, but it's showing up at the bottom of the screen.
@Dorian Workman I think you can use this way ,you have to write in initialiser rather than server side script
Thanks for the reply, but I was already able to resolve this issue. See details in this post: https://community.atlassian.com/t5/Jira-questions/Scriptrunner-Behaviour-Error-Displayed-in-Wrong-Place/qaq-p/1365976#
This was the solution from @PD Sheehan
"The only other thing I can think of is to check your "configure field" option on the screen and make sure you have ShowFields = All. I've seen behavior misbehaving (ha!) when custom field selections have been made."
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Daniel Boulger I realize this is an old post but Im having the exact same issue (see here).
Were you ever able to resolve this please?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
How are you configuring your behaviour?
Your code seems to be fine, maybe it can be a problem with your configuration.
Are you adding the code as a ServerSide script for the Summary field? Or as a Behaviour Initialiser Function?
Regards,
Marcos
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.