Hi. I have problem of cloning comment and attachments with automations.
I had automation where I had clone comment and if this comment had attachment(s), this comment cloned with attachments. But I have problem if someone dont write some comment , only attach some file. This automation dosnt work.
To solve this problem , I decided to make 2 automations, 1 for cloning comment, other one for attachment.
But it have problem - my automation limit for month (5000) its about to end.
Therefore I need only one automation for this. Thinking somebody helped me with solving this problem.
My automations are here :
Hi, @Kamil Askerov
You have rules that are almost identical. Did you try using two separate actions in one rule — one for copying attachments and another for copying comments?
The trigger you're using provides the {{comment}}
smart value. You can use an IF/ELSE condition to check whether the comment body is empty, and then decide whether to copy the comment or the attachment based on that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, @Kamil Askerov
The condition "Is not null" means that the smart value must have some value — in other words, it is not empty
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Evgenii How to make it - when I make only 1 automation - if someone not leave comment - only attachment - then not clonning the comment.
If - else thinking not helps - if can help - how to make this - can you explain me?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, @Kamil Askerov
I think I understand the issue now.
You have two scenarios:
You want to clone either both the comment and attachment , or just the attachment , to another issue — and you want to avoid using extra rules or unnecessary automation.
In this case, you’ll need two separate rules , because the triggers can fire either when a comment is added, or when an attachment is added.
However, if you apply the condition I suggested earlier — slightly adjusted to check whether the last comment body doesn't contain attachment filename — you can achieve exactly what you're aiming for. Here's how it would look in an example...
This rule checks whether an attachment is added and its filename is not mentioned in the comment text. Here is example of comment body, when attachment is added with comment:
If both conditions are true, it means the attachment was added separately (without a comment). In that case, the rule will clone the attachment to the target issue.
This helps ensure that attachments are copied only when they're not already referenced in a comment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why can't you add the branch and all the details in it from the second automation into the first just after the first branch?
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.