Skip to end of metadata
Go to start of metadata

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

Compare with Current View Page History

« Previous Version 6 Next »

Purpose

Hosting

Compatible Tools

Create subtasks based on the values of a choice question (checkbox, dropdown or multi-select dropdown) in a form.

Cloud

Any scripting tool, such as JMWE, Power Scripts or Scriptrunner, that uses Groovy.

Script

 

Installation instructions

Possible use cases

Use this script to create subtasks based on checkboxes on a form. For example, create subtasks for IT and Facilities based on check boxes on an employee onboarding form.

Limitations

  • All options must be on the same choice field inside the same form.

  • The code between lines 101 and 105 may need to be amended to include other fields that have been set as required for creating subtasks in your instance.

  • If there are multiple copies of the same form on the issue, the script will run on the last (most recently added) copy of the form.

  • Issues can only be created for Subtask (child) issue types (as opposed to standard issue types).

  • You will need to refresh in order to see the newly added subtasks.

  • This script may not work if the form is over 32 KB. You can limit the size of your forms by using multiple smaller forms, and by including character/word limits on your text fields.

  • This script will not work on Legacy Forms.

  • No labels