Hi,
The following has been working for months and randomly stopped working. I'm out of ideas on what to do. No changes have been made with custom fields. This was working for various types of custom fields and stopped working for all of them.
Goal: Parent task has "Module Count" custom number field. When creating a parent task:
- The automation rule reads the value and creates that many subtasks (e.g. if Module Count is 5, it creates 5 subtasks)
- The summary for each subtask should be "Module 1", "Module 2", etc, up until the value of Module Count
Problem: This has been working fine and stopped. Now the module subtasks are created with the same name which is "Module" followed by "Module Count". (e.g. 5 subtasks are created and are all named "Module 5", instead of iterating through the numbers).
Here is a screenshot of the rule:

--------------------------------
Here is the code for each section:
#1
------------------------
#2
{{#varLoopValues.rightPad(varLoopValues.length.plus(issue."Module Count"), "X").remove("NULL").replaceAll("X","X,").substringBeforeLast(",").split(",")}}{{#=}}{{index}}+1{{/}}{{^last}},{{/}}{{/}}-------------------
#3
-------------------------
#4