Can someone provide an example outgoing email to create a JIRA issue via JETI?

We are currently using a Google form to create bugs in Trac using a Python script called Email2Trac.  I've been tasked with modifying that to work with JIRA so we only have one piece of bug tracking software.  I can create issues, but have no control over what goes into them with the exception of the description.

I need to know how to format (encode, script, whatever?) the text in the outgoing Google email to create issues in JIRA with JETI, specifically how to designate Components, Summary, Description, Issue Type, Priority, Reporter, etc.  I need to be able to have the reporter (who will most likely not be a JIRA seat owner, hence the use of JETI) on all emails back and forth.

I've tried using some of the things (Components, Priority, & Reporter) available in the templates, but they're just ignored and show up in the description instead of being parsed.  I don't know how they're supposed to be encoded/formatted in the email. and none of the tutorials explain this (that I've found thus far).  For example, in our current email system (Email2Trac), to designate some of the fields, I simply do this:

@reporter:someone@somewhere.com
@component:someComponent
@type:defect
@priority:[level]
@description:blah, blah, blah

Those all get parsed into the resultant bug in the places you'd expect them.  I want to know how to do the same thing with JETI.

Can someone please post an example of what the outgoing mail for the JIRA/JETI configuration should look like.  Once I have that figured out, I can proceed with modifying our current Google form to work with JIRA instead.

1 answer

1 accepted

Hi David,

In JETI, you need to do the following:

  • Enable Field Initialization in the JETI Mail Handler
  • Create a Field Context and add field rules to initialize fields for new issues or when a comment is added 
  • A field rule example could look like this (below prepared for the @component tag):
    • Goal: Initialize field for new issues / existing issues
    • Regex: (?i)@component:(.*)
    • Match in: Mail Body
    • Value: Capture group 1
    • Issue Field: Components

Once you have a field rule for each tag, fields should be populated.

 

Regards,

Tibor

 

Tibor, thanks for the assistance, that was all I needed.  You may want to update your tutorial with this example because it wasn't clear to me at all what needed to be done to make this work.

Thanks again,

David

Well, or not...I've added more field context rules for @reporter and @priority and both are just being ignored.  The reporter is being set to the default email that I'm sending to in my mail handler instead of the address I provided in the email, and the priority is just being set to "Minor" which is the default.

The email body looks like this:

@component:Online RMA
@reporter:dgonsalves@seabird.com
@priority:Blocker

The only piece that's working is the `@component` part, the rest is not.

I've used the exact same regex as you provided for "@component" and simply switched in the appropriate field name, EG:  (?i)@reporter:(.*) & (?i)@priority:(.*), set their issue fields appropriately, I've used sequential capture groups and matched their processing order to the capture group numbers.  See screen capture belowimage2016-10-28 11:38:54.png

What am I doing wrong?

Hi David,

The problem is that your expressions for reporter and priority contain only one capture group, but the rules are configured with Capture Group 2 and Capture Group 3 respectively.

Please change both of them to Capture Group 1.

Read more on capture groups and regex: http://docs.oracle.com/javase/tutorial/essential/regex/groups.html and http://docs.oracle.com/javase/tutorial/essential/regex/index.html

Regards,

Tibor

That fixed it, thanks again for your help.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,026 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot