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?
Hi @Jecynta Ogeto -- 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:
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
Hello @Jecynta Ogeto
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for responding so quickly. When I tried this, I got this error in the Audit log.
Here's a pick of the rule setup.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Jecynta Ogeto
You need to share your Advanced Branch step for this error.
But before you do,
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.