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

In this use case a User Picker (multiple users) custom field will be updated with one or several users depending on the labels contained in the Labels field.


Configuration

UI Steps


UI Step
Add the Update or copy field values post function to the desired transition or create a new transition.


UI Step

Target issue

Choose Current issue


UI Step

Field

Choose a User Picker (multiple values) field


.


UI Step

Value

In the popup, choose the value Set field value manually (parser expression)


UI Step

Expression

Set it to Advanced text and use the following expression

Code Block
languagebash
linenumberstrue
" + " + toString(filterByPredicate(distinct([
"AA" in %{00080} ? "user.one" : null,
"BB" in %{00080} ? "user.one" : null,
"CC" in %{00080} ? "user.two" : null,
"DD" in %{00080} ? "user.two" : null,
"EE" in %{00080} ? "user.three" : null,
"FF" in %{00080} ? "user.three" : null
]), ^% != null))


UI Text Box
typenote

The duplicated characters must be replaced with your labels and the different users (user.one, user.two, user.three), with the usernames of the users of your choice.


UI Text Box
typeinfo
This expression will check if there are some labels in the issue. If there are, it matches the existing labels with one or several predefined users and removes the duplicated users and the empty values in the resulting list.



UI Step

User

Choose Current user



Related use cases

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


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Workflow function

Update or copy field values

Parser functionstoString() distinct() filterByPredicate()
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