In a Jira Service Management project, I need to make a transition when a customer is adding an attachment to the issue from within the portal.
I tried to create an automation rule in Automation for Jira using the Value Field Change trigger (Fields to monitor for changes: Attachment) the but it doesn't get triggered from the Customer Portal. It's triggered only from the Jira UI.
Is there any way to make this transition happen? Or is there any other way to notify the assignee that this ticket has been updated with an attachment?
Best
Dimitris
Geia sou Dimitri!
Attachments are placed on comments. So what you need to do is actually monitor the comments. If you run an automation and log the way an attachment appears, then you will get something like the following:
As you see, xlm/pdf/doc files etc are represented between square brackets, where as images are placed between "!" and have a different format. With that said, and after experimented for a while, the only solution/workaround I can propose is to play with regex. Since I'm not that familiar with it, with a simple OR regex, I got the result I wanted. However, it's not 100% accurate, since it searches for specific strings:
So you search for the last comment, if it contains any values like ".pdf", ".jpg", ".png". If it does, the it pass the if statement and proceeds with the rest of the tasks.
The problem is that a user can write for example on a sentence "Hey Dimitri, did you read that .pdf I've sent you?". If that's the case, then the rule will still run and transition the issue. To overcome that problem you could modify the regex and instead you could write (.pdf]|.jpg|.xlm]|.png) and so on and so forth. You just have to see (by using the log action) for every possible file extension, how this is represented within Jira.
Hope that helps!
Hi Alex,
Your suggestion looks promising! I'll test it out and make a comment as soon as possible.
Efcharistw!!
Dimitris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sure thing! Glad to know that it's promising :D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome solution! Thanks again! Have a great day.
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.
Online 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.