Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel

On this page

Table of Contents
maxLevel2
exclude(On this page|Use case).*
stylecircle
typeflat
separatorpipe



UI Text Box
sizemedium
typeinfo

Use case

Evaluate if an object is in a Assets object custom field by the object key or by the object name.



Configuration

UI Steps


UI Step
Add a Logical validator to thetransition of your choice.


UI Step

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.

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


UI Text Box
typeinfo

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.



UI Expand
expandedtrue
titleVariant

Expression

Enter the following expression after replacing the object name and the field code as in the previous expression.

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


UI Text Box
typeinfo

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

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
sortByTitle
cqllabel = "use-case-workflow" and ancestor in ("27066629","32215720")


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Workflow function

Logical validator

Logical condition

Use case descriptionEvaluate if an object is in a Assets object custom field.
Parser functionsfindPattern() findReplaceAll() replaceAll() toStringList()
Label





Page properties
hiddentrue



Status
Tech review

Status
titletodo

Style guide

Status
titletodo

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged