Hi,
Add on used is Automation for Jira
If any attachment is added in the jira sofware project (ABC) the same attachment must be automatically copied to jira service desk project(XYZ)
However the issues would be linked because the rule is created to automatically creation of issue from jira service desk project to jira software.
So please provide a rule to copy the attachment.
Regards,
Abhishree Nagesh
Hello,
I feel like there are two possible ways to understand this question : you may need to copy attachments when an issue is cloned, or you may need to synchronize attachments between two linked issues (when an attachment is added to one issue, it is automatically created in the other).
These scenarios can occur for files simply attached to an issue, or for attachments added to comments.
Currently, all these scenarios cannot be done natively with Automation.
However, our app Elements Copy & Sync can help you do all this.
It integrates with Automation, and lets you clone issues, including their attachments (directly in the issue or in its comments). It can also synchronize the creation of attachments between linked issues. It's a simple option to enable.
The app is free for 30 days, (and stays free if your instance is under 10 users), so feel free to give it a try, and don't hesitate to tell reach our Support if you have any question.
Kind regards,
Julien
Actually, now attachments can be copied by Automation for Jira in the moment of creating another issue. I didn't test with the edit operation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am using a workaround to link the attachments from the original ticket to the cloned ticket
Example Automation Code
{{issue.description.replaceAll("!","_")}}
*Attachments links from Servicedesk Ticket*
{{#issue.attachment}}
- [ {{filename}} | {{content}} ] - {{size}} Bytes - {{author.displayName}} - {{created.jiraDate}}
{{/issue.attachment}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is an excellent workaround. Thanks for sharing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Peter Reiser ,
I don't quite understand this solution yet. Can you provide more detailed information on how you have set this up? Possibly with screen prints.
Greetings, Marco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In our use case when a service agent select "2nd Level" Support then we clone the ticket in the 2nd Level Servicedesk and link the attachment from the 1st Level Servicedesk ticket to the 2nd Level Servicedesk ticket using an automation rule
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Getting below error while trying your method to copy attachments from a software project to another software project. I have access to create attachments on both the projects.
Thoughts ?
Unknown fields set during clone, they may be unavailable for the project/type. Check your custom field configuration. Fields ignored -Description (description)Issues cloned successfully
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It looks like you have the custom field -Description not configured in the target project
Check your field settings for that project
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
@Peter Reiser I tried your workaround (thanks for that btw) and it worked, kind of, but the images are not shown in the new request, instead you see the filename or the URL.
At the bottom of the description field you see a list of all attachments and you can download them, But is it possible for them to show up directly, as they do in the original request?
/Sebastian
pic1
pic2
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Sebastian Östlund the script only links the attachments in the cloned ticket but does not render it inline. I have not found a way to extract the original image URL per image and then show it inline.
Maybe some other automation cracks know how to do it
But is it possible for them to show up directly, as they do in the original request?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, slightly improved version:
- keeps other ! intact
- extracts filename as $1
{{issue.description.replaceAll("!([a-z]+[^.]+[.][a-z]+)[^!]+!", "$1")}}
*Attachments of original ticket*
{{#issue.attachment}}
- [ {{filename}} | {{content}} ] - {{size}} Bytes - {{author.displayName}}
{{/issue.attachment}}
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.
Brilliant - thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Is delivery date know for "Allow Copy attachments in Cloud" (https://codebarrel.atlassian.net/browse/AUT-1030)?
Regards
Lukasz Gawlik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Really need this for cloud.. We are having to manually copy attachments from one issue to another issue in another project.. I'd think that paying for the Jira automation service shouldn't have these limitations.. When can we expect a fix
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.
A workaround we have used is to clone the issue using Deep Clone. Deep Clone can copy attachments to the new issue.
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.
The interesting part is that Deep Clone has been able to carry over attachments for over a year during a clone, yet Code Barrel and now the acquired group still says it cannot be done. Hoping it can get sorted out as this is one of the last few things I have not been able to fully automate within Jira.
-Matt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@John Funk Deep Clone can be called as a post function (documentation), which is a form of automation.
It would/will be wonderful when Atlassian open up AfJ for third parties to register triggers and actions in their automation engine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, forgot that it is available in a post function - thanks for the reminder @Simon H !!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ooohhhh ... AfJ trigger for deep clone would be awesome!
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.
Hi,
I am the product manager of Deep Clone for Jira.
If anyone has questions or feedback about Deep Clone post-functions or integrating Deep Clone with Jira Automation, don't hesitate to get in touch with us :)
Best,
Marlene
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Since Automation for Jira was acquired by Atlassian, will be copy attachment posible on automation rule?
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.
Same problem, as well with links and comments.
These are all doable in Jira, DeepClone does this now, should be a way to figure this out.
We really need it as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhishree,
I'm afraid that it is not currently possible to copy attachments in Cloud, we have an improvement open around this, https://codebarrel.atlassian.net/browse/AUT-1030 however it is blocked on the fact that there is no Jira API to allow us to do this. It is something that we've raised with Atlassian.
Cheers,
Simeon [Automation for Jira]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Is it possible through any add on like script runner for jira .
As it is blocker in my organization ,so is there any work around.
Regards,
Abhishree Nagesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
instead of linking the issues, you could also use an issue synchronization app. You could configure it so that it creates the Jira software issue when you want it and copy over all the interesting information to your Jira software.
Being part of the product team of Backbone Issue Sync, I can tell you that we also are able to copy attachments. I believe the other issue sync apps can also do this - maybe someone else has a comment on this?
Cheers,
Matthias.
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.
Hey Guys,
based on @Peter Reiser answer , if you using automation to create new jira from exisitng one ( not clone it or copy it) then you can use this in the description json
{
"update":{
"description":[
{
"set":" \n\nAttachments: \n {{attachment.content}} \n\n {{#issue.attachment}} \n [ {{filename}} | {{content}} ] - {{size}} Bytes - {{author.displayName}} - {{created.jiraDate}} \n {{/issue.attachment}}"
}
]
}
}
just format if first in some online json formatter.
This gives you 2 ways of attaching URL of the attachement into the ticket description - use the one you like the most.
Hope this helps
Jarek
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same Problem :) Would be helpfull ;)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
are you using the clone action for creating the initial issue links? According to this feature request, this seems to be working on server, but not for Cloud. Are you using the latest version?
I'm not an Automation expert, but probably @Nick Menere can help. :)
Cheers,
Matthias.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply .
Application is running on cloud.
Help me out by providing the JSON rule to copy the attachment.
Please find the below attachment .
this is how i created a rule.
Regards,
Abhishree Nagesh
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.