Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

The comments made in ideas in discovery project should be copied to the Delivery Tickets linked.

Venkatesh Bojja
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 2, 2025

 

The comments made in ideas in discovery project should be copied to the Delivery Tickets linked ("Is Implemented by") to the idea.
I wrote an Automation Rule to copy the comments from idea to the delivery tickets linked but here comes the issue.
There are few ideas / epics/ tickets "Relates to" this idea and all the comments are being copied to both the Delivery tickets and the "Relates to" tickets as well.

Below are the steps that i followed.
Solution: Restrict the Rule to "is implemented by" Tickets
Step 1: Modify the "Branch for Linked Issues" In the Branch Rule / Related Issues : Type: Linked Issues Link Type: is implemented by (only selected this, uncheck others). Step 2: Add a Condition to Filter Only "is implemented by" Issues Inside the Branch Rule, click New Condition → Select "Issue Fields Condition". Set: Field: Issue Links Condition: equals Value: is implemented by This ensures that only tickets with this link type receive comments. Step 3: Keep the Smart Values Condition to Prevent Duplicates Keep the Smart Values Condition to prevent duplicate comments: First Value: {{destinationIssue.comments.body}} Condition: Does not contain Second Value: {{comment.body}} Step 4: Comment on the Issue If the above conditions pass, proceed with the "Comment on Issue" action as before: **Author:** {{comment.author.displayName}} **Timestamp:** {{comment.created.format("yyyy-MM-dd HH:mm:ss")}} **Comment:** {{comment.body}} _(Copied from Idea Ticket {{triggerIssue.key}})_

 

 

2 answers

1 vote
Nick Haller
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 3, 2025

Hi @Venkatesh Bojja ,

I configured an identical automation, and believe I followed the linking you mentioned where:

  • JPD idea linked to Jira delivery through idea's Delivery tab
  • Other Jira work item is linked to JPD idea through "Relates to" link-type

But cannot seem to replicate the behavior you're describing where the automation is adding a comment to both the Jira delivery and other Jira work item. For example, here is my automation:

auto-comm1.jpg

 

The idea, delivery and work item relationship:

auto-comm2.jpg

 

But only the Jira delivery is commented on by the automation:

auto-comm3.jpg

 

If possible, it might be worth connecting with JPD support to investigate further. 

You can open a ticket HERE, or within JPD under the Give feedback tab >> Get help from the support team option.

Bill Sheboy
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 3, 2025

Hi @Nick Haller 

Is the {{destinationIssue}} smart value available in rules for other than the Issue Linked and Issue Link Deleted triggers?  There is nothing in the documentation to indicate this or what the value represents in other contexts.

Thanks, and kind regards,
Bill

Nick Haller
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 3, 2025

Hi @Bill Sheboy ,

As far as I'm aware of, {{destinationIssue}} is dependent on a link-type between two work items, ideas, etc.

I'm also unsure of whether or not there is any official documentation about this, but our knowledge base does have a handful of resources about how to use this.

Like Bill Sheboy likes this
Bill Sheboy
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 3, 2025

Thanks, Nick.  All the listed articles you note which include that smart value use one of the link-related triggers.  Guess I will experiment to see what happens :^)

0 votes
Bill Sheboy
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 2, 2025

Hi @Venkatesh Bojja -- Welcome to the Atlassian Community!

For a question like this, context is important for the community to help.  Please post the following:

  • an image of your complete automation rule in a single image for continuity
  • images of any relevant actions / conditions / branches
  • an image of the rule details at the top, showing the rule scope
  • an image of the audit log details showing the rule execution
  • explain what is not working as expected and why you believe that to be the case

Kind regards,
Bill

Venkatesh Bojja
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 3, 2025

Image of complete Automation Rule.Workflow.PNG
Image of action,condition,brachesBranch.PNGAction.PNGCondtion.PNG
Image of Rule Details.
RuleDetails.PNGAuditLog.PNG
The idea in discovery project has one delivery ticket ("Is Implemented by" relationship) and one user story as "relates to".
If i add a comment in Idea, the comment should be copied to "Is implemented by" ticket only, it must not be copied to "relates to ticket.

Bill Sheboy
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 3, 2025

In your smart values condition, you reference the {{destinationIssue}} smart value, however that one is only available when using one of the issue linking triggers:

https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Issue-linked

I do not know that that value would even contain once inside of a related issues branch on linked issues, but the behavior is most certainly undocumented / unknown.

 

As you are trying to copy all of the comments added to the Idea into its linked "delivery tickets", I recommend removing that condition.

 

You seem to indicate that other link types are being found by the branch.  Have you checked if those issues have multiple links (of different types) to the Idea?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events