First off, sorry for the wordy subject :)
The ITSM solution we currently use has a mail monitor built into it that takes emails and breaks parses out various elements into variables that we can use to create specific tickets.
For example we have structured our system generated alerts to have particular words in the subject to steer the info to a ticket type and we have delimiters in the Body of the email to be able to pull out words, dates, information
i.e. we can derive the host name due to having based on a rule that says within the body of the email After Hostname: and before <<end Host name it will start the value.
We are getting emails for off boarding from our HR system and through our scim connector we can totally format the email.
I want to be able to capture things like the user name, their account name, end date, notes that are all formatted in the email to be parsed out. I am just not sure who to plug all this in to JSM to be able to catch the email, pull out variables and then to create the 'Staff Movements' ticket we have as a standard request type.
You can configure an incoming mail server for Jira, and then create mail handlers to process them.
What you want should be possible with Script Runner's mail handler. You get access to "message" parameter which is a javax.mail.Message object of the email received. Then you can parse the message however you like, and create an Issue with it.
Script Runner allows you to specify a Groovy script, and provides a list of certain parameters... you can see the parameters if you click on the question mark icon at the lower right corner of the script editor.
Since the mail handler gives you the javax.mail.Message object, you have access to the email data you want.
And then you can use ComponentAccessor.getIssueManager().createIssue to create the issue.
Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event