Repeaters for automation step

Document ID : KB000072375
Last Modified Date : 01/03/2018
Show Technical Document Details
Question:
When using the automation feature code snippet, how do I know which repeater I am in? 
Environment:
CA Agile Requirements Designer (ARD)- Agile Designer 
Answer:
Unfortunately, within a repeated Code Snippet there is no easy way of knowing which iteration of the repeater you are in. In some situations, it would be useful to pass this to a variable within the Code Snippet. (e.g. inside a for() loop). Use the @nextval([sequence_name])@ TDM function to imitate a counter.
Additional Information:
If you experience any further issues, please open a support case by going to https://www.ca.com/us/services-support/ca-support/contact-support.html.