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

Create a sub-task for each selected component in of the current issue, you can make use of this function to avoid repetitive tasks when you have multiple components and want to create a sub-task for eachtransitioned issue. A different component of the main issue will be inherited by each sub-task.


Image ModifiedConfiguration steps

UI Steps


Expression
UI Step

Add a Create issue post function to the workflow transition you want.

Mode*

Choose Multiple issues based on a text list and enter the following expression with the expression editor set to General mode.

Expression

Code Block
linenumberstrue
%{toStringList(%{issue.components.id})}


UI Text Box
iconfalse
typeinfo

The number of elements in the text list defines the number of issues to be created.


UI Expand
titleVariant
UI Step

Issues to be created

UI Steps
UI Step

Mode

Choose Multiple issues.

UI Step


Code Block
linenumberstrue
%{except(toStringList(%{issue.
component})with parsing mode set to Text list.
components.id}),fieldValue(%{issue.components.id}, subtasks()))}


UI Text Box
iconfalse
typeinfo
The number of list elements defines the number of issues to be created

In order to avoid the creation of sub-tasks that have already been created, this expression excludes from the list the IDs of the components that are already included in the sub-tasks.




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 expression with parsing mode set to General.

Code Block
languagebash
linenumberstrue
"Sub-task related to " + for %{getMatchingValue(%{seed.text}
with parsing mode set to Advanced text
, toStringList(%{issue.components.id}),toStringList(%{issue.components}))}


UI Text Box
typeinfo

This expression will return the name of the component associated to the ID.



UI Step

Description

To enrich the issue with further more information, you might want to add a short description. It is not mandatory, though.

Image RemovedScreenshots


UI Step

Components

Select and update the Components fields manually with the following expression in General mode.

Code Block
linenumberstrue
%{seed.text}
Image Removed





Image ModifiedRelated examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, LabelComplexity
sortByTitle
cqllabel = "use-case-workflow" and space = currentSpace() and ancestor = "2706675238569502"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Workflow function

Create issue

Parser functionstoStringList() getMatchingValue()
Label
Use case descriptionCreate a sub-task for each selected component in the current issue.
Complexity

Status
colourGreen
titleBeginner



Page properties
hiddentrue



Status
Tech review

Status
colourGreenYellow
titledoneReady for review

Style guide

Status
colourGreen
titledone

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


...