I want to set a number in the hidden item and calculate it with JIRA automation.Hiding a field results in a Smart Value Rendering Error.
Is it impossible to calculate a hidden field?
Hello @koutarou ishibashi
Per the 2021 answer from Simmo on this post, if your rule is running as the Automation for Jira user then it should be able to access Fields that have been Hidden through the Field Configuration.
https://community.atlassian.com/t5/Jira-Software-questions/Can-Automation-rules-edit-a-hidden-field/qaq-p/1801459
If that does not address your question please show us your automation rule and the output in the Audit Log.
If the following calculation hides the item, it will result in an error.{{#=}}{{issue.customfield_10273}} / {{issue.customfield_10272}} * 100 {{/}}
Unknown unary operator / at character position 1: / * 100
The error is not due to trying to set a value on a hidden field. You have syntax errors in your statement that result in Jira not finding the data for the smart values you used.
Your smart values appear to have a blank space between customfield_ and the number that comes next. You need to remove that blank space.
There is no space after the customfield_.customfield_10273, if the customfield_10272 is displayed, there will be no error.customfield_10273, if you hide the customfield_10272, an error will occur.
Can't hidden fields be calculated?
It looks like you're new here. Sign in or register to get started.