You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Just putting this out there in case someone else is running into the same issue.
I have a form (external to Jira) that creates Jira tickets via email. While I can set some fields directly (using JEMH), multi-selection fields like checkboxes don't work, so those types form questions typically are just mapped to the description. My goals was to parse the description and set the appropriate values in the checkbox field. It was simple enough to isolate the values using .substringBefore and .substringAfter and then creating a list using .split. But I could never get the checkbox field to update correctly. I sifted through many answers here that were close, but never quite got there.
Eventually I stumbled upon this:
My data was separated by new lines "\n" inside a table cell and not commas, but it was exactly what I needed.
Set the variable {{formCheckboxes}}
{{description.substringAfter("|*Checkbox*|").substringBefore("|\n|*Next Question").trim().replace("\n","\"},{\"value\": \"").concat("\"} ]").reverse().concat("\" :\"eulav\"{ [").reverse()}}
Then the JSON for the edit was then simple:
{
"fields": {
"customfield_12345": {{formCheckboxes}}
}
}
Hope this helps someone, I was beating my head on the wall.