My requirement is as below. Can you please let me know if that is achievable using JIRA automation?
When a jira issue is updated, I want to apply a label, say XYZ, based on below logic:
Capture the datetime of the second last EVENT, say, DATETIME-SECOND-LAST
AND
Capture the datetime of the last EVENT, say, DATETIME-LAST
EVENT here can be.....
comment added by a user belonging to ABC user group
OR
status changed to TO DO or IN PROGRESS
If the difference of DATETIME-SECOND-LAST and DATETIME-LAST is greater than X hours, then apply the label, XYZ.