Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Scriptrunner behaviours Help Text is showing at the bottom of the create screen

Daniel Boulger April 24, 2018

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:

HelpText.jpg

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.  

3 answers

0 votes
Chander Korshika
Contributor
August 27, 2020

@Dorian Workman I think you can use this way ,you have to write in initialiser rather than server side script

image.png

Dorian Workman
Contributor
August 28, 2020


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."

0 votes
Dorian Workman
Contributor
April 30, 2020

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?

0 votes
Marcos Sanchez
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 24, 2018

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

Suggest an answer

Log in or Sign up to answer