In Jira automation I am trying to write some conditional logic to set a custom field (T-Shirt Size) based on the value in Original Estimate in the Additional Fields part of Edit issue and need a bit of help please.
I'm using a "Value Changes for" trigger on Time tracking and am successfully trapping when the original estimate is set or changes, added a screenshot of my rule below.
The field that I'm trying to set is a select drop down although I don't think I'm getting near that point yet. This is what I have so far -
{ "fields": { "customfield_10266": "{{#=}}if(issue.fields.originalEstimateSeconds.lte(288000), \"S\", if(issue.fields.originalEstimateSeconds.lte(864000), \"M\", if(issue.fields.originalEstimateSeconds.lte(1440000), \"L\", \"XL\"))){{/}}" } }
Error -
Error while rendering additional fields.
Unknown operator . at character position 9

Any help will be greatly appreciated, thank you