Skip to content

Commit

Permalink
Fix #63: pass field list as array instead of string when using POST i…
Browse files Browse the repository at this point in the history
…stead of GET for jira/search API endpoint
  • Loading branch information
CybotTM committed Nov 28, 2022
1 parent 887bbb1 commit e84ab7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ protected function handleInternalJiraTicketSystem($entry, $oldEntry)
$project->getInternalJiraProjectKey(),
$strTicket
),
'key,summary',
['key', 'summary'],
1
);

Expand Down
4 changes: 2 additions & 2 deletions src/Netresearch/TimeTrackerBundle/Helper/JiraOAuthApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,15 +417,15 @@ public function createTicket(Entry $entry)

/**
* @param string $jql
* @param string $fields
* @param array $fields
* @param int $limit
* @return \stdClass
* @throws JiraApiException
* @throws JiraApiInvalidResourceException
*/
public function searchTicket($jql, $fields, $limit = 1)
{
//we use POST to support very large queries
// we use POST to support very large queries
return $this->post(
"search/",
[
Expand Down

0 comments on commit e84ab7c

Please sign in to comment.