Hi all, I'm trying to copy into a clone issue the comments of the original issue, as detailed here https://confluence.atlassian.com/jirakb/how-to-copy-comments-from-the-original-issue-to-the-cloned-issue-1236601599.html
Here's the automation I created
However the rule fails to detect the linked issue and thus updates nothing.
Is anybody able to assist?Many thanks in advance.
Hi @andrea.rodifalanga
what do you mean by "the rule fails to detect the linked issue" The error message states, that the issue does not match the condition. Is the clone link present in the issue?
If yes it could possibly be a timing issue. Could you try to ad a refetch issue data action before the condition is evaluated. This should give some extra time in case of unfinished linking.
Everything else looks good to me.
Hi @Kai Becker thanks for your time and input.
After adding the refetch issue data, the error is still there
How would I check if the clone link is present in the issue?
Many thanks in advance.
sad to hear. You should be able to check the json data from the api and look for the links. The api url will be https://<your site name>.atlassian.net/rest/api/3/issue/<issue-key>
The easiest way to do this is to select the option to include the attachments when the issue is cloned manually.
With automation rules, the features to select the source issue for attachment copy are quite limited, requiring the source to be: the trigger issue, current issue, or some linked relationship. Because your trigger issue is the clone, rules cannot copy in that direction (currently). I recall there are several open suggestions to improve that behavior.
There is no public REST API function to do this either, and so marketplace addons apparently do this with custom code.
A possible work-around for rules is using two rules:
Kind regards,Bill
It looks like you're new here. Sign in or register to get started.