Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Commit

Permalink
fix(jira): update fields with new keys (#185)
Browse files Browse the repository at this point in the history
Refs: MON-12560

Co-authored-by: Kevin Duret <[email protected]>
  • Loading branch information
ponchoh and kduret committed Apr 15, 2022
1 parent b002f04 commit 431a804
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected function _setDefaultValueExtra()
),
array('Arg' => self::ARG_DESCRIPTION, 'Value' => '{$body}'),
array('Arg' => self::ARG_PROJECT, 'Value' => '{$select.jira_project.id}'),
array('Arg' => self::ARG_ASSIGNEE, 'Value' => '{$select.jira_assignee.value}'),
array('Arg' => self::ARG_ASSIGNEE, 'Value' => '{$select.jira_assignee.id}'),
array('Arg' => self::ARG_PRIORITY, 'Value' => '{$select.jira_priority.id}'),
array('Arg' => self::ARG_ISSUETYPE, 'Value' => '{$select.jira_issuetype.id}'),
);
Expand Down Expand Up @@ -363,7 +363,7 @@ protected function assignJiraUser($entry, &$groups_order, &$groups, $label_sessi

$result = array();
foreach ($this->_jira_call_response as $row) {
$result[$row['key']] = $this->to_utf8($row['name']);
$result[$row['accountId']] = $this->to_utf8($row['displayName']);
}

$this->saveSession($label_session, $this->_jira_call_response);
Expand Down Expand Up @@ -524,7 +524,7 @@ protected function listIssuetypeJira()

protected function listUserJira($filter)
{
$search = 'username=';
$search = 'query=';
if (isset($filter)) {
$search .= urlencode($filter);
}
Expand All @@ -549,7 +549,7 @@ protected function createTicketJira($ticket_arguments)
&& $ticket_arguments[$this->_internal_arg_name[self::ARG_ASSIGNEE]] != ''
) {
$argument['fields']['assignee'] = array(
'name' => $ticket_arguments[$this->_internal_arg_name[self::ARG_ASSIGNEE]]
'accountId' => $ticket_arguments[$this->_internal_arg_name[self::ARG_ASSIGNEE]]
);
}
if (isset($ticket_arguments[$this->_internal_arg_name[self::ARG_PRIORITY]])
Expand Down

0 comments on commit 431a804

Please sign in to comment.