I can't get advanced branching to iterate when I use the split on a custom field or a variable created from the custom field. It just treats the comma separated list as a single item.
Instead of looping through the branch for each item from the split, it only does a search one time with the entire contents of the custom field (not split). I'm so stumped trying to figure out why this won't work, and I can't use a get command because I don't know how many variables will be in the list. Any idea what I'm doing wrong here?
Please note in the audit log entry the JQL expression is invalid as there are no quotation marks surrounding the values in the Lookup Work Item Data action.
And perhaps more importantly, the {{#debug}} ... {{/}} syntax helps to write values to the log without adding additional Log actions, however, the documentation does not describe when this may or may not be used.
I hypothesize your use of debug in the advanced branch prevents the smart value interpretation as a list. And I just did a quick test to confirm this, so the fix is to remove the debug from around the advanced branch's smart value expression.
Kind regards,
Bill
You have no idea how long I've been trying to get this to work. Thank you so much for your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome; I am glad to learn it is working! Please consider marking this question as "answered" to help others with a similar need find solutions faster. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How can I get advanced branching to properly loop through each item after splitting a custom field in Jira automation?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @RabattDigga_de
Welcome to the Atlassian community.
If the information that the original author included in their post is not sufficient to help you, then I recommend that you start your own Question by clicking the +Ask a question button at the top of the Forums page. Include all the details of your scenario:
1. Screen images showing your entire rule
2. Screen images showing the details of each step where you use a smart value or JQL statement.
3. Screen images showing the details of your Branch step
4. Screen images showing the audit log output details when the rule executes.
5. An explanation of what exactly you want the rule to do versus the results you are observing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.