I am trying to add an automation to my Jira workflows. The scenario that I am trying to execute is as under
- Manual trigger
- For every ticket in a given list, check if there is a comment that contains 'Key Search Term'
- If the comment is older than 1 month, then insert another comment, else dont insert comment.
I know that I can retrieve the list of comments by using the smart value {{#issue.comments}}. But how do I iterate through these comments to find the one that contains the key search time and the date corresponding to that comment.
My current thought is to attach a label with like YY-MM to the ticket and then next round of updates, update tickets based on the YY-MM and remove existing label and add a new one.