Forums

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

Behaviour for auto-population of multi line text field does not work with rich text editing enabled

Deleted user
February 25, 2021

We use the following code to auto-populate the description field in some Service Desk request types:

def Beschreibung = getFieldById("description")

def defaultValue = """ Notwendige Informationen: .... """

if (! underlyingIssue?.description) {
Beschreibung.setFormValue(defaultValue)
}

Beschreibung.setHelpText("Bitte die notwendigen Informationen eintragen")

 

After upgrading to Service Management in the test environment we noticed that the appearance of the multi line text fields changed. 

This change somehow causes the behaviour to be unable to populate the description field. The help text is shown so i suggest that the behaviour itself is working fine.

Is there a way to auto populate the "new" multi line text fields. Since this is a game stopper for us we would really appreciate a workaround or an explanation how the field was changed and why the groovy script is not working anymore.

 

Best regards,

Ludwig

1 answer

0 votes
Deleted user
February 25, 2021

If the rich text editing is disabled, the code is working fine and the behaviour is able to auto populate the multi line fields.

I am still interested in why and how the script fails with rich text editing enabled. If it is possible we would like to have both - rich text editing and behaviour funcionality.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events