Hi all,
I have a Jira Software project (Cloud), with an incoming mail handler. This is all working fine, however I now need to adjust/edit the issue description once the issue is created.
I know this may be better suited to a Jira Service Management project however I am trying to re-use an existing project instead of having a separate project just for the emailed issues.
Essentially what I want the automation to do is:
I have tried using the Delete all attachments action, however this did not work.
I have also tried using regex example listed here: Delete unwanted attachments from JSM requests using Automation | Jira | Atlassian Documentation
TLDR; Anyone have any ideas how to format my automation rule to remove images/thumbnails from a Jira Software Project task (upon creation)?
For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!
Until we see those...
Kind regards,
Bill
Hi @Bill Sheboy you were absolutely right, adding that re-fetch action helped! Thank you! The automation is now deleting the attachments from emails which is great.
Here is a screenshot of the automation:
The only small issue is that it prompts a Jira notification email for the deleted attachments action. There doesn't seem to be a notification preference for just issue attachments either, so may need to come up with an alternative solution for removing attachments.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy just adding to my reply, FYI I came up with a solution:
This allows jira to make the changes to the attachments without sending any annoying emails. Thanks again for your help! I couldn't have got it sorted without your guidance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome, and well done solving the notification issue!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Simon Galiazzo Can you please re-upload your screenshot of the Automation a bit bigger because I can't make out some of it?
I'm thinking about implementing this because when I investigated the issue of the images in an email signature creating multiple attachments against the JIRA ticket, I discovered the following:
The negative part of this particular solution using Automation is that, if my understanding is correct, it will remove ALL images from the ticket which could potentially include valid images such as screenshots the requestor has taken to help illustrate their point and popped in the email body. Sounds like the only way around that currently is using the JEMH Paid App which sounds like you can upload commonly used images to and it then recognises those same images in emails and excludes ONLY those images.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Michael Woolfall apologies not sure what happened with my original screenshot.
I agree it's disappointing that there isn't an in-built solution from Atlassian that answers this requirement.
I ended up splitting it into multiple automation rules, to try and mitigate the possibility of wanted image attachments being removed, i.e:
So for the create/update rule, I had the following:
The branching component essentially checks if the attached image has the [image#.] as the file name, since signature image attachments seem to have this naming convention (at least in my experience). So if your attachments have a different name they should be fine? However you will need to test.
And the final edit issue component rewrites the issue description, without the attachments/filenames.
Hope this helps?
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.
Awesome, thanks @Simon Galiazzo
I'll check it all out and get back to you if I have any further questions :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.
Register nowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.