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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Context is important for automation rules; would you please post images of:
Those may explain the symptom you are observing. Thanks!
And as Trudy noted from that linked post: "hidden" fields can only be edited by automation rules when the rule actor is the default value, Automation for Jira. That user has special permissions allowing it to bypass the screen/field checks for edit. If you have changed the rule actor then it cannot edit / see the field.
Kind regards,
Bill
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.