Hi there. I found a really useful article about the creation of scriptrunner script plugin. But there is no example of how to create behaviours automatically via a code.
Could someone provide an example or at least point me to the documentation where it's described?
Thanks.
Hi @Shah Baloch
The Mailhandler that ships with the Scriptrunner app for Jira will process incoming emails and execute a Groovy script. What you put in the script is up to you but you have the option to do some great things. Examples could be:
You can find the documentation for Scriptrunner Mailhandler here.
There is some great examples to get you started.
Regards
Lasse Langhorn
Thank you for your reply. The documentation is not much clear, maybe it's new for me that's why. I entered the first script mentioned in the documentation, it is saying I don't have any mail, I have emails in my inbox, I don't know why I get that message that shown in the screenshot. Why it is checking the server? I thought it'll pick up the email from the inbox. I appreciate your help.
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.
Hello @Shah Baloch
I would like to know how you unblocked yourself so if it is possible to show me your incoming mail.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It didn't work as we needed. It can create a ticket if an email received. We wanted to use it for Nagios alert, However, it was creating duplicate tickets for the same type of alerts. Jira's email handler works better for us. I copied the code here Mail Handler
Thanks,
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.