I have linked a project in Jira Service Management (named DT) to another in Jira Software (named RBR).
Tickets are created in RBR upon a certain transition of DT tickets. Comments and attachments are copied along as well at creation.
I created another set of rules to copy attachments whenever they are created, from any one linked project to the other. There are 2 rules and the one that copies from RBR to DT looks like this:
The audit logs show no errors, however, the attachments are NOT transferred along.
The other rule, from DT to RBR, shows in the audit logs that no action has been performed because the linked "work items do not meet the condition".
However, because in Jira Service Management the attachments get automatically transformed into a comment, the comments do get transferred successfully as subject of a previous automation :).
Still, these comments show as "preview unavailable" in the linked project, as below:
I don't see what is wrong.
Thanks a lot!
Hi @Daniel
As an alternative to Automation that can be really complex to implement sometimes for specific use cases, I can suggest trying our app Elements Copy & Sync.
You'll be able to synchronize comments and attachments between linked issues (cross-projects and even cross-instances).
Don't hesitate to check the documentation, it’s really quick and easy to set up.
The app is for free during 30 days (and it stays free under 10 users).
Hi, @Marc - Devoteam , thanks for the reply!
I have to use conditions in the branch because I have multiple projects and we link tickets between them.
If I try to be specific on the type of conditions, I noticed that the links fail. So I use the projects to get to the correct linked work items.
As you can see from the audit logs, the automation finds the right ticket across projects and it claims it edited it. It's just that the attachment is not actually copied.
Thanks for the link you provided, it's very useful. I proudly discovered myself that, since in Jira Service Management attachments are transformed into comments, the comments transfer rule apply, which it does, but the file show as "preview unavailable".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Copying of attachments , see this KB (synchronizing-attachments-between-linked-jira-issues-across-different-projects
I think the issue is in your condition in the branch.
Are you using a specific link type for this, then place this link type in the branch.
If you want to set a condition, then use something like in a smart value conditon.
{{issue.key}} contains DT
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Alright, @Marc - Devoteam , I figured out what was wrong.
In the Copy Attachment action I selected "current work item" instead of "trigger work item".
So the automation should look like this:
That still leaves the photos attached within comments who do not get transferred along properly and show "preview unavailable".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Photos in comments are attachments an link to an attachment in the issue. If you paste a photo in a comment its linked to that issue. So when copying components the preview wants to use the key of the issue where it was pasted, but on a new issue this key is different.
So its best to add attachments direct and not via a comment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.