Hi,
I am trying to use datediff capabilities with a created variable that pulls a date from a comment.
This is the text that creates the variable "BlockedDate"
{{issue.comments.first.body.substringBetween("Blocked : ","States :")}}
It parses a comment and pulls the date (but i assume is formatted as a string)
This is effectively what it is parsing
Blocked : Dec 1, 2023, 11:40:47 PM
States :
and it will print "Dec 1, 2023, 11:40:47 PM" to a comment
When I print this in a comment though I get no fail message but nothing printed
{{now.diff(BlockedDate.toDate).hours}}
Any suggestions/help would be appreciated
Marc
{{BlockedDate.toDate("MMM dd, yyyy, hh:mm:ss a")}} is what resolved my issue
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
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.