You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 45 Next »

On this page

Use case

Create a sub-task for each component in your project, you can make use of this function to avoid repetitive tasks when you have multiple components and want to create a sub-task for each.


Basic configuration*


Mode*

Choose Multiple issues.

Expression*

toStringList(%{issue.component})

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


The expression must return a string list.


Issue type*

Choose Selected issue type.

Specific issue type

Choose Sub-task.

Parent issue*

Choose Current issue.

Fields*

Summary*

"Sub-task related to " + ^%+

more info...

This is a mandatory field to summarize your issue, and you can also give a summary using field codes.

Describe your issue

Additional fields


copy remaining fields

Choose from which issue you want to copy the remaining fields from.

If you chose an issue to copy from you would have to choose between the following options (multi-choice is possible):

  • All remaining fields
  • Attachments
  • Comments
  • Issue links
Issue links

This is an optional parameter where you can define issue links to be created for the new issue that you are currently creating,


Additional options
  • If you want to copy issue keys of created issues into the field Ephemeral String 3 as a string list. Choose this option.


Conditional execution

If you want some conditions that need to be checked before the execution of this post function. add your Boolean expression ( it has to return the value true or false).

Run as

Choose which user you want to give permission to execute this post function. By default it is set to the Current user.


After checking if the parameters match this example you can click on add and this is how the post function should look like.

Now that you are familiar with this post function and what it does, you can configure the parameters based on your needs.


Related examples


If you still have questions, feel free to refer to our support team.