Versions Compared

Key

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

...

  • call: Prefix to tell the mapping it is a function
  • Perl::Path: Module's Perl package
  • Module: odule's name
  • functionName: Name of the function to call inside of the module

Parameters

Left

...

Hand Side Functions

Functions called on the left hand side, the function mapOTRSOptionFieldDemoUser2JIRAAssignee in the screenshot above, will be passed three parameters:

...

Code Block
languageperl
my ($TicketJIRAObj, $fieldmapping, %Ticket) = @_;

Right

...

Hand Side Functions

Functions called on the right hand side, the function mapOTRSOptionToJIRAOption in the screenshot above, will be passed four parameters:

...

Strictly speaking you can do anything, even just create a value to be send to Jira for a special field.

Mapping Configuration

...

Example

KeyContents
call:Douglas::Adams::HHGTTG,answer
cust:answer

Function

...

Example

Code Block
languageperl
titleDouglas/Adams/HHGTTG.pm
package call:Douglas::Adams;

use strict;

sub answer {
	my ($TicketJIRAObj, $fieldmapping, %Ticket) = @_; // ignored in this example anyway
	return 42; // this is the only important answer anyway :-)
}