Hi All!
As a summary, I have a calculated custom variable that stores a number (could be 3, 5, etc) and thanks to logs I know it stores the value correctly. To make things simple I just put a number there. So, it has the number value, and I can see it on the logs.
So, I want to use it to make some date calculations, as seen below
Actually, I will update some fields on Jira issue, but for sake of simplicity, I just log the value of calculatedDueDate, which is EMPTY. if I manually type 3 in parenthesis, I see due date + 3 days. But if I use my custom variable, it doesn't work.
I tried it with and without .toNumber, the result is the same. But I confirm that dateShiftInNumber custom variable has the value. So, do you know if there is any rules preventing using custom variables in date time operations?
Any answer is appreciated!
Thanks!
Yes. The problem was the syntax (isn't it always?)
the correct syntax is .asNumber, not .toNumber
It works as expected now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online 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.