Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column
width30%
Panel
borderColor#333f48
bgColor#FFFFFF
titleColor#eeeeee
borderWidth1
titleBGColor#333f48
borderStylesolid
titleOn this page

Table of Contents
maxLevel1

Column



Features used to implement the example

  • Create issues and sub-tasks


Example: Create subtasks based on optoins checked in a checkbox

This is an example for creating multiple subtasks based on the selection in a checkbox when creating an issue.

We want to automatically created these subtasks. In this case we want to create subtasks for a new Software Release.


For this there is a custom field checkbox "Addtitional issues" with options [Newsletter, Release Notes, Documentation]. When selecting one of these, a specific subtask will be created with the Fixed Version in summary.



Text to be parsed is:

toStringList(%{10200})

getMatchingValue(^%,["Newsletter","Release Notes","Documentation"], ["Newsletter for Version " + %{00074}, "Release Notes for Version " + %{00074}, "Documentation for Version " + %{00074}])

%{00014} = "Release"


Note that

  • %{10200} is field code for a custom field called called "Additional issues"
  • %{00014} is field code for field issuetypefield "issue type"
  • %{00074} is field code for field "Fixed VersionsVersion/s"
  • The summary contains additionally the Fixed Version


Once configured the transition will look like this: 



The workflow is shared between the parent issue and the subtasks, thus we are using a Conditional execution with boolean expression %{00014} = "Release" to avoid the post function to be executed by the subtasks.

For more see Result screenshots post-function "Create multiple subtasks based on options checked in a checkbox"



Other examples of that function

Incoming Links
pageCreate issues and sub-tasks
labelsexample

Related Usage Examples

Content by Label
cqllabel = "example" and label in ("sub-task","custom-field")