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

This use case is useful for giving instructions on how create several issues from the combination of two fields with different options. Every newly created issue will contain a different combination of these two fields and there will be a issue for each possible combination.


Prerequisites

UI Expand
titleSet up custom fields


UI Steps


UI Step

Create a Select List (single choice) custom field

Name: Countries

Options:

  • Germany
  • Spain
  • US


UI Step

Create another Select List (single choice) custom field

Name: Approaches

Options:

  • Approach A
  • Approach B




Configuration

UI Steps


UI Step
Add a Create issue post function to the workflow transition of your choice.


UI Step
Issues to be created


UI Steps



UI Step

Expression

Write an expression using this format with parsing mode in Number.

Code Block
linenumberstrue
count(toStringList(%{InsightObjectID_Countryissue.cfCountry})) * count(toStringList(%{CustomFieldID_Themaissue.cfApproaches}))



text-box
ui-

%{issue.cfnnnnn} is the field code for the field Status Update

ui-step

Issue type

Choose Selected issue type.


UI Step

Specific issue type

Choose Sub-task.


UI Step

Parent issue

Choose Current issue.




UI Step

Summary

Enter the following expression 

Code Block
languagebash
linenumberstrue
"Country: " + nthElement(toStringList(%{InsightObjectID_Countryissue.cfCountry}),ceil(^ / count(toStringList(%{CustomFieldID_Themaissue.cfApproaches})))) + " / Zusatzinfo: " + nthElement(toStringList(%{CustomFieldID_Themaissue.cfApproaches}),(modulus(^,count(toStringList(%{CustomFieldID_Themaissue.cfApproaches}))) = 0 ? count(toStringList(%{CustomFieldID_Themaissue.cfApproaches})) : modulus(^,count(toStringList(%{CustomFieldID_Themaissue.cfApproaches}))))

with parsing mode set to Advanced text.


UI Step

Country

Enter the following expression

Code Block
languagebash
linenumberstrue
nthElement(toStringList(%{InsightObjectID_Countryissue.cfCountry}),ceil(^ / count(toStringList(%{CustomFieldID_Themaissue.cfApproaches}))))

with parsing mode set to Advanced text.


UI Step

Approaches

Enter the following expression

Code Block
languagebash
linenumberstrue
nthElement(toStringList(%{CustomFieldID_Themaissue.cfApproaches}),(modulus(^,count(toStringList(%{CustomFieldID_Themaissue.cfApproaches}))) = 0 ? count(toStringList(%{CustomFieldID_Themaissue.cfApproaches})) : modulus(^,count(toStringList(%{CustomFieldID_Themaissue.cfApproaches})))))

with parsing mode set to Advanced text.



Related use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
sortByTitle
cqllabel in ("use-case-workflow","parser_func_nthelement","parser_func_tostringlist","parser_func_modulus","parser_func_count","parser_func_ceil") and ancestor = "27066752"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Workflow function

Create issue

Parser functionsnthElement() toStringList() modulus() count() ceil()
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