Forums

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

Help with Json formating in automation

Amy Schindel
Contributor
August 19, 2025

I'm very new to Json.  I'm creating an automation and would like it to copy data from fields in one project to different fields in a different project. My automation works fine, except I'm getting a syntax error on my JSON. 

{
"fields": {
"Description": "{{triggerIssue.data load description }}"}},
"Original description[Paragraph]": "{{triggerIssue.description }}"
}
}

I need the field "data load description" (custom field) to be updated with what is in the field "description" (standard description field)  and then ALSO update the field "Original description" (custom field)  with what is in "description" (standard description field)

One source suggested using the custom field ID.  When I look that up for my field "Original description" it shows what I have above, "Original description[Paragraph]", and not a number like I have seen in other places.  But ""Original description" also doesn't work.

Thanks in advance for any help!

1 answer

1 vote
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 19, 2025

Hi @Amy Schindel 

For a question like this, context is important for the community to help.  Please post the following:

  • what type of project is this: company-managed, team-managed, JPD, etc.
  • an image of your complete automation rule in a single image for continuity
  • images of any relevant actions / conditions / branches
  • an image of the audit log details showing the rule execution
  • explain what is not working as expected and why you believe that to be the case

Until we see those...

For the expression you show, there are extra spaces after the field names and before the double-curly brackets which may be causing errors.

 

And...smart values are name, spacing and case-sensitive.  Have you confirmed you have the correct smart values (or custom field IDs) for the fields?  This how-to article helps to confirm the correct ones:

https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

 

Kind regards,
Bill

Amy Schindel
Contributor
August 21, 2025

The project type is company managed.  

Automation overall screenshot:

Automation screenshot.png

Details of Create new work step:

create new work item.png

Audit Log:
audit log.png

If I take out the Json part in the additional fields, the automation works fine. That's why I think it's something with that particular part (in addition to the audit log telling me that it's not valid JSON.

If I try to create a filter with the custom fields I made, here's what shows there for the smart values.  

custom fields filter.png

 

I've tried this with and without the [paragraph] part.  And I copied / pasted this directly into JSON and it still didn't work.  The rest api link didn't work for me today, but I can work with that more tomorrow to double check the the smart value / custom id of the custom fields.

Thanks for asking for additional context...  Let me know if there are other things I can add the would help.

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 21, 2025

Thanks for that information, @Amy Schindel 

In both your original and the JSON shown in the rule images, there are typos / stray curly brackets.  And, please note smart values are name, spacing, and case-sensitive.  This is why I suggested using that how-to documentation confirm them.

 

Here is a cleaned up version that may work if the the smart values are correct:

{
"fields": {
"description": "{{triggerIssue.data load description}}",
"Original description[Paragraph]": "{{triggerIssue.description}}"
}
}

I suspect that "data load description" is not the correct smart value for the field.  Perhaps try using the custom field ID instead, which can also be found with that how-to.

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