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

Creating repetitive issues might be time-consuming work, especially when done on a daily basis. This post function can be used for pre-configuring a set sub-tasks.

Each time the transition is executed, all needed sub-tasks will be created depending on the selected values in a checkbox field.


UI Expand
titleShould I use a workflow post function or an automation rule?


UI Text Box
typetip

When to use this workflow post function and when to use an automation rule?

This use case is very useful, if repetitive issues have to be created in only one project or workflow. Then a post function is the easier way to go.

But if this setup is needed for several projects, the Create issue action would make more sense.  In this case you might want to check out our corresponding automation use case.



Configuration

UI Steps


UI Step

Add a Create issue post function to the desired workflow transition.

UI Text Box
typetip

The Create issue transition might here the best choice, though. When added to the Create issue transition, the post function will be automatically executed each time an issue is created.



UI Step

Issues to be created

UI Steps


UI Step

Mode

Choose Multiple issues


UI Step

Expression

Enter the following parser expression

Code Block
languagebash
linenumberstrue
toStringList(%{issue.cfnnnnn})
# Replace the field code with the one of your custom field. Use the field dropdown to automatically insert the field code.
# You can use any field supporting multiple options, e.g. checkboxes or multi-selects.

with parsing mode set to Text list


UI Step

Issue type

Choose Selected issue type → Sub-task


UI Step

Parent issue

Choose Current issue




UI Step

Summary

Enter the following expression

Code Block
languagebash
linenumberstrue
%{seed.text}
# This is a reference to each value returned by the text list.

with parsing mode set to Advanced Text


UI Step

Description

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


UI Step

Run as

User

Choose Current user




Screenshots


Related use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
sortByTitle
cqllabel = "use-case-workflow" and ancestor = "27066752"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Workflow function

Create issue

Parser functionstoStringList()
Label

Status
colourRed
titlestaff pick



Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

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