Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Jira Automation: Setting checkbox values from a delimited text string

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:

Converting a CSV string to a JSON object array when JSON Smart Value Functions do not work in an Automation Rule

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.



Log in or Sign up to comment