Creating issues from email by setting fields in the email body

I am using JIRA OnDemand and have successfully set up issue creation from email following these instructions:

https://confluence.atlassian.com/display/JIRA/Creating+Issues+and+Comments+from+Email

 

I have only one more wish: I want do specify the "issue type", "priority" and "epic" within the body of the email! E.g. by using special keywords such as

<email-body>

PRIORITY: Minor

ISSUE TYPE: Bug

At the moment it is possible to ...

</email-body>

How can I do this with a JIRA OnDemand instance?

Thank you very much for your suggestions!

3 answers

1 vote

The standard mail handlers cannot do that, you need to use a handler that can process that information.

The only way to do this with Cloud JIRA is to enable the JEMH addon.

Thanks for the quick reply!

To avoid using JEMH: Can I probably configure several email addresses with my JIRA OnDemand instance? I'm thinking of introducing a jira-bug@...atlassian.net and jira-story@...atlassian.net in addition to jira@...atlassian.net and to configure different mail handlers for those.

Do you think this will work?

 

Mmm, partly, you'll get the project/issue-type split and priority will still be taken from the priority field on the email header. But I don't know if you can use multiple email addresses in OnDemand (I'm pretty sure you can, but don't have one to play with at the moment)

Thanks! I just tried to use multiple email addresses in OnDemand, but couldn't make it work. If anybody know how it works or whether it does not work, please let me know...

Hi, we encountered the same problem.
The solution we found was to create a post-function at the create transition that runs a SIL program.

The program parses the description and then set the values, for example:


string projet = key;

if (%projet%.issueType == "My Issue Type") {

if (matchStart(%projet%.description, "<conditionalTag>") > 0) {
%projet%.reporter = trim(substring(%projet%.description, matchEnd(%projet%.description, "<Reporter>"), matchStart(%projet%.description, "</Reporter>")));
...
}
}

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

419 views 7 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you