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

Compare with Current View Page History

« Previous Version 2 Next »

On this page

Use case

Evaluate if an object is in a Assets object custom field.


Configuration

Add a Logical validator to the transition of your choice.

Expression

Enter the following expression after replacing the object key OK-3387 and the field code %{issue.cfaaaaa} with the desired object key and the field code of your Assets object custom field respectively.

"OK-3387" in findPattern(%{issue.cfaaaaa}, "[A-Z]{2,}-[0-9]+")

This expression will evaluate if the specified issue key is included in a list of object keys constructed from the object keys of the objects of the custom field.

Variant

Expression

"Astronaut 01" in toStringList(findReplaceAll(replaceAll(%{issue.cf10106}, "[A-Z]{2,}-[0-9]+", ""), " ()", ""))

This expression will evaluate if the specified object name is included in a list of object names constructed from the object names of the objects of the custom field.


Related use cases


If you still have questions, feel free to refer to our support team.