On this page
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
Configuration
Expression
Write an expression using this format with parsing mode in Number.
count(toStringList(%{issue.cfCountry})) * count(toStringList(%{issue.cfApproaches}))
Issue type
Choose Selected issue type.
Specific issue type
Choose Sub-task.
Parent issue
Choose Current issue.
Summary
Enter the following expression
"Country: " + nthElement(toStringList(%{issue.cfCountry}),ceil(^ / count(toStringList(%{issue.cfApproaches})))) + " / Zusatzinfo: " + nthElement(toStringList(%{issue.cfApproaches}),(modulus(^,count(toStringList(%{issue.cfApproaches}))) = 0 ? count(toStringList(%{issue.cfApproaches})) : modulus(^,count(toStringList(%{issue.cfApproaches}))))
with parsing mode set to Advanced text.
Country
Enter the following expression
nthElement(toStringList(%{issue.cfCountry}),ceil(^ / count(toStringList(%{issue.cfApproaches}))))
with parsing mode set to Advanced text.
Approaches
Enter the following expression
nthElement(toStringList(%{issue.cfApproaches}),(modulus(^,count(toStringList(%{issue.cfApproaches}))) = 0 ? count(toStringList(%{issue.cfApproaches})) : modulus(^,count(toStringList(%{issue.cfApproaches})))))
with parsing mode set to Advanced text.
Related use cases
If you still have questions, feel free to refer to our support team.