Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning

Looking for the documentation on the newest versions of Power Scripts for Jira 8 for Server/Data Center? Click here !

Contents

Table of Contents
excludeSee also

Starting with Power Scripts for Jira 4.0, we've added the ability to use SIL scripts to process incoming emails.

Specific SIL integrations

Power Scripts for Jira provides  provides a set of specific routines for use withing mail handling scripts that enable you to read the contents of the incoming email and handle any attachments, as described below.

Anchor
IncomingEmail
IncomingEmail

Predefined structure: IncomingEmail

NameFieldTypeObs
Incoming Email


from

string []

Array of email addresses

to

string []

Array of email addresses

cc

string []

Array of email addresses

subject

string


body

string

Entire body of the message including quoted text in case of replied or forwarded messages

attachments

string []

Array containing the names of the attachments; there can be duplicates

...

Tip

You might find the getUserByEmail and getUserKeysFromEmails routines useful.

Adding the SIL Mail Handler

To add a new SIL Mail Handler:

  1. Go to Administration > System > Incoming Mail and click Add incoming mail handler.



  2. Fill in the necessary fields:
    • Mail Handler name
    • Incoming server to use
    • Delay between running time
    • Select the SIL Mail Handler
    Click Next.
  3. In the next screen, select the script to use for the handler and click Add.



To delete the mail handler, use the standard Jira standard feature.

That's it!

See also

...