I need to implement an Automation for Jira rule that will send an email when nobody except the Reporter has commented on an issue some number of days after it was created. This is Jira Data Center 8.13.18.
I thought I could use advanced compare with two smart values to see if they are equal.
{{#issue.comments}}{{author.name}}{{/}} - generate a string of all comment authors so if there are three comments it might look like 'jgordonjgordontwilson'
{{#issue.comments}}{{issue.reporter.name}}{{/}} - generate string with equivalent number of repeating reporter name that I want to look like 'jgordonjgordonjgordon'
The first value populates (I have logged its output)
The second value does not populate, it's blank. I am assuming this is because when I am in the context of looping through comments, {{issue.reporter.name}} is not available.
Any ideas on this or possibly another approach to determine if the Reporter is the only one who has commented on the issue?
Hi @Jeff Gordon --
I found a janky, if workable solution:
Quicker way to get your list of authors:
{{issue.comments.author.name.join(" ")}}
And then I add replaceAll to generate the reporter list to compare it to:
{{issue.comments.author.name.join(" ").replaceAll("(\b\w+\b)",reporter.name)}}
I'm not sure why the replaceAll doesn't include the spaces when it replaces "All", but it seems to work, so there you go.
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.