Versions Compared

Key

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

...

  1. $TicketJIRAObj
    • An Instance of Kernel::System::TicketJIRA
  2. $fieldmapping
    • The entries from the SysConfig: TicketJIRA###OTRS-JIRA-FieldMapping
  3. %Ticket
    • An instance of Kernel::System::Ticket::Article
Code Block
languageperl
my ($TicketJIRAObj, $fieldmapping, %Ticket) = @_;


Right hand side functions

...

  1. $TicketJIRAObj
    • An Instance of Kernel::System::TicketJIRA
  2. $val
    • The value as obtained by the left hand side of the mapping
  3. $fields
    • A Hash of key => values for Jira, e.g.:

      Code Block
      languageperl
      titleExample of fields
       {
      	project       => { key => "ASDF" },
      	issuetype     => { name => "Bug" },
      	summary       => "Title from the Article",
      	description   => "The multi line Body of the Article",
      	reporter      => { name => "Reporter" },
      	assignee      => { name => "Assignee" },
      	customfield_12345  => "Value",
          customfield_12346  => 42,
      }
  4. %Ticket
    • An instance of Kernel::System::Ticket::Article
Code Block
languageperl
my ($TicketJIRAObj, $val, $fields, %Ticket) = @_;


Example Code

Tip

A Complete example of a installable OTRS Package (OPM) is available at bitbucket.org/cwx/jirademoplugins.

This Package actually makes use of additional settings that are defined in an included XML file.

Feel free to explore the examples included therein.

...