Contact for Service
catworkx GmbH
Schellerdamm 16
21079 Hamburg
Germany
> Get Support
<
Content
Teamworkx OTRS Integration for Jira also allows a more complex field mapping. This can be useful in the following cases:
| Table of Contents |
|---|
| Tip |
|---|
For complex mapping, functions have to be implemented separately. See the demo package under Downloads. |
In case you need the freedom of e.g.:
To do a complex mapping, functions have to be implemented separately.
| Tip |
|---|
...
See the demo package under Downloads. |
Configure the following:
| Table of Contents |
|---|
A function can be used either on the left or on the right hand side of the mapping table:
...
| Code Block | ||
|---|---|---|
| ||
call:Perl::Path::Module,functionName |
call:The prefix Prefix to tell the mapping it is a functionPerl::Path:The Module's Perl PackagepackageModule:The Module odule's namefunctionName:The name Name of the function to call inside of the ModulemoduleFunctions called on the left hand side, the function mapOTRSOptionFieldDemoUser2JIRAAssignee in the screenshot above, will be passed three parameters:
$TicketJIRAObj: An Instance of Kernel::System::TicketJIRA$fieldmapping: The entries from the SysConfig: TicketJIRA###OTRS-JIRA-FieldMapping%Ticket: An instance of Kernel::System::Ticket::Article| Code Block | ||
|---|---|---|
| ||
my ($TicketJIRAObj, $fieldmapping, %Ticket) = @_; |
...
Functions called on the right hand side, the function mapOTRSOptionToJIRAOption in the screenshot above, will be passed four parameters:
$TicketJIRAObj: An Instance of Kernel::System::TicketJIRA$val: The value as obtained by the left hand side of the mapping$fields
: A Hash of key => values for Jira, e.g.:
| Code Block | ||||
|---|---|---|---|---|
| ||||
{
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,
} |
%Ticket
: An instance of Kernel::System::Ticket::Article
| Code Block | ||
|---|---|---|
| ||
my ($TicketJIRAObj, $val, $fields, %Ticket) = @_; |
| Tip |
|---|
A Complete example of a installable OTRS Package package (OPM) is available at bitbucket.org/cwx/jirademoplugins. This Package package actually makes use of additional settings that are defined in an included XML file. Feel free to explore the examples included therein. |
...