Global Rule - Pass Comment to Linked Issues not consistently working

cinzia December 17, 2020

I have a global rule that I created whereby it captures comments from a ticket in one project and copies it over to its linked issue in another project and vice versa.  However for some reason it does not consistently work and I cannot figure out why.  Any help would be appreciated.  Here are the rule details:

My scope is set to multiple projects with Actor as JIRA Robot.

When: Issue commented: Rule is run when a comment is added to an issue.
If: Compare two values
Checks if:
{{issue.comments.last.author.name}} does not equal jirabot

For Linked issues
Types: All link types
If: Compare two values
Checks if:
{{issue.comments.last.author.name}} does not equal jirabot
Then: Add comment to issue
{{triggerIssue.comment.last.body}}

 

 

1 answer

0 votes
Radek Dostál
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 17, 2020

If we are talking about Automation for Jira, you could check the audit log of the rule to check what happened to it when it ran (if).

 

In any case I suppose that you are trying to prevent endless comment loop by checking for the last author name in all issues, i.e. checking that source and target issues' last comment author is not the jirabot. So unless both issues receive a comment from another user than jirabot, this rule cannot work. Can that be the reason?

 

Maybe you could switch that to compare the comment body, which should prevent duplicates and at the same time not require that both issues require a comment from another user.

Radek Dostál
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 17, 2020

Other than that, I would say you might want to elaborate what "works inconsistently" means -- it could mean virtually anything to leave us guessing.

Like cinzia likes this
cinzia December 17, 2020

Appreciate the quick response.  I'll review the audit log as suggested.  That said, I do believe its a case of the comment coming from someone other than jirabot as you mentioned.  I entered 2 comments myself and one appeared as Jirabot and the other as myself.   

Suggest an answer

Log in or Sign up to answer