How to change the outbound notification attachment window?

Background

JEMH can include attachments in outbound notifications.  

Included by transition custom field

From JEMH 1.6.19+ , an attachment picker Custom Field was added, this field is specifically looked at by the JEMH Postfunction, and if present/populated, related attachments that are 'picked' interactively will be added to outbound notifications, see:

Included by time-window

but they must have been created within a specific time window for the current event.  The default value is 30S.  In most cases this doesn't need changing.

 Available in 1.3.30.3, 1.3.53+, 1.4.21+

Customize the window

JEMH has an environment variable that can be used to tweak this value (its in milli seconds, so 30S is 30*1000 = 30000; 1h is 60*60*1000 = 3600000).  The usual setenv.sh / setenv.bat needs a new variable defining, e.g. to make the window 1hour, add:

  -Djemh.attach.window=3600000

The exact place could be anywhere, here is an example changed line:

# # The following are the required arguments for JIRA. # JVM_REQUIRED_ARGS="-Djava.awt.headless=true -Datlassian.standalone=JIRA -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Djemh.attach.window=3600000"