Versions Compared

Key

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

...

Both dates must be in format yyyy-MM-dd'T'HH:mm:ss.SSSZ

 


String $jirassimo.settingValue($key)

This function retrieves value from Settings based on $key supplied. Settings are basically collection of key=value pairs and they are helpful if you need, for example, to find out user's channel from his email.

 


String $jirassimo.formatDate($dateValue, $format)

Formats given $dateValue date using format in $format. If $format is omitted then MM-dd-yy hh:mm will be used. 


String $jirassimo.formatNumber($numberValue, $format)

Formats given $numberValue using format in $format. Standard Java DecimalFormats are supported.

 


$jirassimo.includeAttachments($pattern)

Sends attachments from current Issue to email/slack/hipchat. $pattern defines extensions that attachment must match against. If not specified then all. 


$jirassimo.customBotAvatar($customBotAvatarUrl)

...

Allows you to retrieve a value of JIRA property for the specified user key.    


$jirassimo.convertAndFormatDate($dateValue, $timezone, $format)

Parses the date from $dateValue and outputs it in given $format with specified $timezone. Timezone code must be one value from https://en.wikipedia.org/wiki/List_of_tz_database_time_zones in column TZ*

 
$jirassimo.collectMentionsEmails($JiraTextOrTextAreaField)

Given the Jira field, find users mentioned in it and return a collection of users' emails.