Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×Hi, I've got a tough one for you automation gurus!:
I am pulling over selections from Gravity Forms on a website and using Zapier to create a Jira ticket and dump those selections in. That is working perfectly, but GF / Zap dumps all of them in as comma separated values. As an example, here is the raw field I get from the Zap:
I need to use automation to take these, look for matches, and select the corresponding values in a multiselection custom field. For instance:
Looking at Atlassian's documentation, I came up with an automation I thought would work using JSON to edit the field (custom field 10104 is the "RAW - How Long Have You Been In Business" field above, populated by Zapier):
This automation passes validation, and says successful on the audit, but nothing is changed in the multiselect field ("TEST HOW LONG HAVE YOU BEEN IN BUSINESS"). That multiselect field has Option 1, Option 2, etc to match the formula above. So basically, it says it runs, but nothing happens. I'm assuming this is because it needs to parse out the comma separated values first, but I don't know how to do that with JSON.
Please help!
There are many problems the built-in rule validation cannot detect, and in this case it is not detecting the incorrect JSON, which seems to imply a mapping function for the values...which does not exist.
In some cases, one would use a conditional expression to build the dynamic JSON: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-conditional-logic/
However, that will not work directly for your case because there could be zero-to-many values, and you do not know which one is last. That bit is important to avoid a trailing comma, which would break the precise JSON format (which automation rules use :^)
Back to the problem, you have several alternatives:
Kind regards,
Bill
Thanks for the thorough and detailed response as always, Bill! I will definitely investigate the more complex method. In a perfect world, I can convert the values in Zapier before the reach Jira (my original plan), but I've found that even if I create exact matches in the Jira multiple selection fields for the responses received, Jira does not properly recognize them, so the fields remain blank. Both Zapier and Atlassian say as long as the values match, they should be able to accommodate even multiple selection fields, but I have not been able to get that to work.
I'll let you know what I come up with. If anybody else has suggestions, I'd love to hear them!
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.