I have an automation set to calculate total comments and then then to divide and figure out total comments per page. The automation isn't giving any errors but the total comments per page is coming out as none.
I just had two statements changing the fields but I tried converting them to variables to see what numbers I was getting.
commentsPerPage = {{totalComments.divide(issue."Total Pages").format("###.##")}}
Hi @Valerie Prater -- Welcome to the Atlassian Community!
Here are a couple of things to try...
First, created variables are text. To use them as a number use asNumber to convert the value before math operations/functions.
Next, smart values for fields are name, spacing, and case-sensitive. To confirm you have the correct ones for your custom fields, please take a look at this how-to article: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
Kind regards,
Bill
Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.
Register nowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.