Forums

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

Update a custom field value with Jira automation to show the result of a multiplication

Lean Li
Contributor
February 11, 2024

I am trying to update a custom field value with Jira automation based on the result of the multiplication of two other custom fields, but the audit log shows me this error for Edit issue:

" Error while rendering additional fields. Unknown unary operator * at character position 1"

My JSON looks like this:

{
"fields": {
"customfield_15813" : "{{#=}}{{issue.customFieldId_15601.value}}*{{issue.customFieldId_15812.value}}{{/}}"
}
}

Any suggestions how to proceed? Thank you very much already in advance!

1 answer

1 accepted

1 vote
Answer accepted
Jerrold - Empyra
Community Champion
February 11, 2024

Hi

Please consider using the following JSON:

{
"fields": {
"customfield_15813" : "{{# =}} {{customfield_15601}} * {{customfield_15812}} {{/}}"
}
}

Smart values are name, spacing, and case-sensitive. Therefore, please ensure that spaces are preserved accordingly.

Thank you.

Lean Li
Contributor
February 11, 2024

Thank you - this worked!

Like Jerrold - Empyra likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events