How-to Set Up Keyword Mapping
In this article, we explain how to map keywords in emails to different custom fields in Jira.
You must have the Jira Administrator permission and an incoming mail server configured in order to complete this how-to article
Instructions
Navigate to the “Incoming Mail” section of Jira Administration.
Select the mail handler you would like to use Mapping on or follow these instructions for Creating Your First In-Mail Handler .
Choose the “Parser” section and select which parser you would like to use. Keep in mind the formats from the parent page: Mapping Formats and Support .
Choose the “Mapping” section and then the “Mapping” tab to map your keywords to Jira fields. You can also set default values in the “Default” section.
Map your keywords to fields as you see fit. Each mapping corresponds to key/value pairs that will be expected in the body of the email, depending on the parser type chosen.
Example
Consider the Mapping configuration above.
Depending on the parser type, the email body might look something like this:
JSON parser | XML parser |
---|---|
title:”Some title” | <title>Some title</title> |
Parser Rules
Specify field values rather than field IDs.
Ex: Write<issuetype>MyTaskType</issuetype>
instead of<issuetype>10000</issuetype>
For multiple-value fields, separate the options by commas (
,
)
Ex: Write<comps>Comp1, Comp2</comps>
orcomps:”Comp1, Comp2”
for the JSON parser.
Note: Spaces between values are ignored.