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()
}
}
]
}
}
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()
Hello, Please refer to https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/. This looks like JSON format error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.