Is there a way to iterate (loop) in A4J? I want to create a set of sub-tasks, but the number of sub-tasks will be determined from the parent. Simple example - the Requester enters a number (say 4) and my rule will create 4 sub-tasks.
Any thoughts on how to accomplish this?
You can read a field value and go with If statements (if value == 4 - create 4 subtasks etc) but the rule will be long and will take some time to execute
It doesn't really help if the number is variable and potentially large. The range in this case could be 1-30. I really need a "while" or "for" loop kind of mechanism. One idea that I have is to create a list of issues in a dummy project with an id of 1 to 30 (or 100 or whatever). Then I could do a JQL Branch "project = XXX and id <= {{issue.number of subtasks}}" - this would return the correct number of issues and let me iterate that way. It is a real kludge though
What I ended up doing instead is using JMWE and the range() function to do it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.