Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to copy the latest comment added to ticket in Project-A to Project-B automatically?

Darren Nicas
Contributor
April 23, 2024

I have Jira Software Project-A and JSM Project-B.

 

When a comment is added to the ticket in Project-B with link `causes` to ticket in Project-A, then the same comment body should be posted to the ticket in Project-A and Project-B.

Screenshot 2024-04-23 172027.png

1. I've created an automation with projects scope: Project-A, Project-B.

2. Trigger: Rule is triggered on all comments

3. If smart value compare: check if the author is who we expect to copy their comment only: {{issue.comments.last.author.displayName}} = DisplayName

4. Advanced Branch: For Linked Issues with `ca

uses` relationship

5. Comment on issue: add the comment of the trigger issue {{triggerIssue.comment.last.body}}

 

When I run the rule the IF statement correctly catches the latest user as `PAXAFE Automation` and moves on to branching, but finds no issues.

 

The ticket from Project-A is triggering the automation, and it does have a issue linked from Project-B with `causes` relationship type.

I've also tried removing the filter for linking type and set to `All Links` but still it is not successful.

No matter what I do the smart branching does not recognize there are any linked issues and skips that section of the automation entirely.  How do I fix this?

 

Screenshot 2024-04-23 172255.png

1 answer

1 accepted

2 votes
Answer accepted
Kalyan Sattaluri
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.
April 23, 2024

Hello @Darren Nicas 

I know you have mentioned you had added scope of Project B, but please confirm that it is reflecting in the UI. Also hoping you have access to view and comment Project B.

Darren Nicas
Contributor
April 23, 2024

I had the wrong project listed in the scope, thank you :)

Like Kalyan Sattaluri likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Upcoming Jira Events