Jira Automation - How to find a specific comment of an issue and read its datetime stamp?

Erin Quick-Laughlin
Contributor
June 9, 2021

We have automation to set two custom fields that we'll just call "SupportCreated" and "SupportLastModified".

I'd like to set SupportCreated using something like the smart text match() and a regular expression, to find the earliest comment that contains a string #support, read it's timestamp and edit the SupportCreated field.  

I don't just want to rely on timing and setting it to {{now}}, in case someone copies this rule to a new project that already has comments containing the string.  Otherwise the SupportCreated can never be updated to the earlier time.

It's not clear to me just how much manipulation can be done with regex and match() to get the collection of comments, find the right one, and get it's timestamp.  Open to alternative solutions too, within the scope of using Jira Automation.

0 answers

Suggest an answer

Log in or Sign up to answer