Our new Appfire Documentation Space is now live!

Take a look here! If you have any questions please email support@appfire.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

Abstract

This code snippet concatenates two text fields ignoring null values

Logic

Access the text fields, checking for null values and concatenate them

Snippet

textutils.noNull(<First text field>) + "<Delimiter>" + textutils.noNull(<Second text field>)

Placeholders

Placeholder

Description

Example

<First text field>
Accessing the first text field
issue.get("description")
"<Delimiter>"
Delimiter separating the text fields"\n"
<Second text field>
Accessing the second text field
issue.get("summary")

Examples

The output of this code is a String which you could, for example, use in a Groovy expression, to calculate and display the concatenation of two text fields Customer Name and Machine details in a Calculated Text field.

textutils.noNull(issue.get("Customer Name")) + textutils.noNull(issue.get("Machine details"))

References

  • No labels