Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

automation rule to add mulitple components - JSON parsing error

Tina Leszkiewicz
Contributor
March 8, 2023

Hello!

Just hoping for a quick answer here. - how do you format the JSON field in automation to add two different components?

 

My automation is based around an if/else condition: if component = AA, then add component BB. Else if the component field is empty, then add Components AA and BB.

I have the JSON code for the single component aspect (which runs just fine), but not being familiar with JSON, I'm not sure how to properly format adding two. All of my attempts have yielded some sort of "error while parsing additional fields" so clearly I'm missing something. For reference, Here is my single-component JSON, and my latest attempt at the double-componentScreenshot 2023-03-08 at 2.06.40 PM.pngScreenshot 2023-03-08 at 2.08.17 PM.png

1 answer

1 accepted

1 vote
Answer accepted
Tina Leszkiewicz
Contributor
March 8, 2023

For those looking for an answer - I HAVE ONE!

Atlassian Support now has a chat option and I was able to have someone get me the correct formatting. Here's the code format if you need to add at least 2 components to an automation rule.

Not sure how to paste it in as actual code, but hope this helps!Screenshot 2023-03-08 at 3.17.23 PM.png 

Carlos Garcia Navarro
Community Champion
March 8, 2023

Cool, thanks for sharing!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events