Hi Yogesh,
When you use Office365 as your Mail Server the messages will come into JIRA and you can setup JIRA to create issues automatically per Creating issues and comments from email. In light of this you may not need to create the connection from O365 to JIRA since JIRA can handle this for you and you can tell your add-on to use the mail server JIRA uses.
There are a couple resources that may be able to assist you in terms of creating the JavaScript to create issues, however, the first two links are related to Cloud only:
In addition, take a look a look at the following Community post:
How create an issue from Javascript/JQuery front end?
Hopefully this helps.
Cheers,
Branden
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.