Forums

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

Error while parsing additional fields. Not valid JSON.

Vipul
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 31, 2023

I have created a automation to calculate the work logged percent to check how efficiently the task got completed

{
"update": {
"customfield_10110": [
{
"add": {
"value": "{{#=}}{{issue.worklog.timeSpent.divide(issue.fields.originalEstimate).multiply(100)}}{{/}}".toString()
}
}
]
}
}

2 answers

0 votes
Marc - Devoteam
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.
July 31, 2023

Hi @Vipul 

I think the JSON is wrong here:

{{#=}}{{issue.worklog.timeSpent.divide(issue.fields.originalEstimate).multiply(100)}}{{/}}".toString()

I think it could be:

{{#=}}{{issue.worklog.timeSpent}} / {{issue.fields.originalEstimate}} * 100{{/}}".toString()

0 votes
Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 31, 2023

Hello,  Please refer to https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/. This looks like JSON format error.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events