Create Tickets Based on Custom Field with Multiple Entries
Asked by Jecynta Ogeto:

I am trying to create new, linked tickets dependent upon the custom field "Part Number" in the parent Issue. The "Part Number" field may contain one part number or several. Is there a way to parse the part numbers in the "Part Number" field to create the new tickets?![Screenshot 2024-05-13 151420.png](https://community.atlassian.com/t5/image/serverpage/image-id/323421i006ABB1C077DFEC2/image-size/large?v=v2&px=999 "Screenshot 2024-05-13 151420.png")


Answers:
author: Bill Sheboy
body: Hi [@Jecynta Ogeto](/t5/user/viewprofilepage/user-id/5496218) -- Welcome to the Atlassian Community!

What version of Jira are you using: Cloud, Server, or Data Center?

With Jira Cloud, you may split the values in the field and loop over them with an advanced branch. Please look here to learn more about that approach:

* <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#split-String-separator->
* <https://community.atlassian.com/t5/Automation-articles/Branching-over-smart-values-in-Jira-Automation/ba-p/1741935>

However if you are using Jira Server or Data Center, they do not have advanced branching yet: <https://jira.atlassian.com/browse/JIRAAUTOSERVER-749> One possible workaround is a rule which repeatedly triggers itself using an Incoming Webhook technique, progressively removing one value at a time from the list until done: <https://confluence.atlassian.com/automation/jira-automation-triggers-993924804.html#Jiraautomationtriggers-incomingwebhookIncomingwebhook>

Kind regards,  
Bill


author: Kalyan Sattaluri
body: Hello [@Jecynta Ogeto](/t5/user/viewprofilepage/user-id/5496218)

If you expect it to be comma separated string, to parse and convert to list, you can use {{Part Number.split(",")}} smart value.

Not sure of your end goal, but If you are in cloud, you can use "Advanced Branching" - For/Each and give a variable name (mypartnumber) and value to iterate on as {{Part Number.split(",")}}

once inside the branch, you can create issues/link etc and you can use {{mypartnumber}} to reference each value while creating issues for example.

Please try and share screenshot/audit log if stuck.

comments: author: Jecynta Ogeto
body: Thanks for responding so quickly. When I tried this, I got this error in the Audit log.

![Screenshot 2024-05-15 093435.png](https://community.atlassian.com/t5/image/serverpage/image-id/323856i625BA5A8B8907B61/image-size/large?v=v2&px=999 "Screenshot 2024-05-15 093435.png")

Here's a pick of the rule setup.

![Screenshot 2024-05-15 093511.png](https://community.atlassian.com/t5/image/serverpage/image-id/323860i55EF5BCDDDA021AB/image-size/large?v=v2&px=999 "Screenshot 2024-05-15 093511.png")


author: Kalyan Sattaluri
body: Hello [@Jecynta Ogeto](/t5/user/viewprofilepage/user-id/5496218)

You need to share your Advanced Branch step for this error.

But before you do,

* add log statements like I have in the below screenshot and,
* share your rule which shows Advanced Branch details like I have including audit log.

Because without the log statement, we cannot tell anything.

Finally, when creating new issue, you need to use {{mypart}} in your summary if you want to reference item which is in loop. We will get there, but first insert these log statements, run the rule and share audit log and rule which shows advanced branch like Ihave.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/323910iEEC0B1EADD5891E4/image-size/large?v=v2&px=999 "image.png")


author: Jecynta Ogeto
body: Here's what I have so far.![Screenshot 2024-05-15 151410.png](https://community.atlassian.com/t5/image/serverpage/image-id/323947i17FDA38B43740B87/image-size/large?v=v2&px=999 "Screenshot 2024-05-15 151410.png")![Screenshot 2024-05-15 151443.png](https://community.atlassian.com/t5/image/serverpage/image-id/323948i1DE589707E01066F/image-size/large?v=v2&px=999 "Screenshot 2024-05-15 151443.png")