Returns all comments for an issue.

@param string $issue
@param boolean $expand
@return ResourcesList
@throws JiraException
175798
public function getComments($issue, $expand = false)
    {
        $path = "/issue/{$issue}/comment" . ($expand ? '?expand' : '');

        try {
            $result = $this->client->callGet($path);

            return AbstractResource::deserializeListValue('comment', 'comments', $result->getData(), $this->client);
        } catch (Exception $e) {
            throw new JiraException("Failed to get issue '{$issue}' commens", $e);
        }
    }
627601
def get_issue_comment(self, id):
        
        assert isinstance(id, (int, long)), id
        headers, data = self._requester.requestJsonAndCheck(
            "GET",
            self._parentUrl(self.issue_url) + "/comments/" + str(id)
        )
        return github.IssueComment.IssueComment(self._requester, headers, data, completed=True)
406139
def get_list_of_processes(self, expand=None):
        
        query_parameters = {}
        if expand is not None:
            query_parameters['$expand'] = self._serialize.query('expand', expand, 'str')
        response = self._send(http_method='GET',
                              location_id='02cc6a73-5cfb-427d-8c8e-b49fb086e8af',
                              version='5.0-preview.2',
                              query_parameters=query_parameters)
        return self._deserialize('[ProcessInfo]', self._unwrap_collection(response))
55847
public function comments(string $issue)
    {
        return new Comments($this->getHttpClient(), $this->username, $this->repo, $issue);
    }
1135548
public function issues()
    {
        if (is_null($this->issueRequests)) {
            $this->issueRequests = new IssueRequests($this->client);
        }

        return $this->issueRequests;
    }
457223
public function changes(string $issue)
    {
        return new Changes($this->getHttpClient(), $this->username, $this->repo, $issue);
    }
37288
public function get($mms_id, $expand = null)
    {
        $params = ['expand' => $expand];

        return Bib::make($this->client, $mms_id)
            ->setParams($params);
    }
840932
public function all($username, $repository, $issue = null)
    {
        if ($issue === null) {
            $path = '/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/labels';
        } else {
            $path = '/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/issues/'.rawurlencode($issue).'/labels';
        }

        return $this->get($path);
    }
900220
public function create($issueId, array $params = [])
    {
        $defaults = [
            'relation_type' => 'relates',
            'issue_to_id' => null,
            'delay' => null,
        ];

        $params = $this->sanitizeParams($defaults, $params);

        $params = json_encode(['relation' => $params]);

        return json_decode($this->post('/issues/'.urlencode($issueId).'/relations.json', $params), true);
    }
433030
def get_issue_comments(self):
        
        return github.PaginatedList.PaginatedList(
            github.IssueComment.IssueComment,
            self._requester,
            self.issue_url + "/comments",
            None
        )
1187937
public function GetComment($key) {
        $resources = $this->GetList();
        $actionExists = array_key_exists($this->ActionValue, $resources);
        $keyExist = $actionExists ?
                array_key_exists($key, $resources[$this->ActionValue]) :
                false;
        if ($keyExist) {
            return $resources[$this->ActionValue][$key][F_controller_resource::F_CONTROLLER_RESOURCE_COMMENT];
        } else {
//            $errMsg = 
//                    "The resource comment doesn't exist. Module => " . 
//                    $this->ModuleValue . 
//                    " ; Action => " . 
//                    $this->ActionValue .
//                    "; Key => " . $key;
//            throw new Classes\ResourceNotFoundException($errMsg, ResourceErrors::RESOURCE_COMMENT_NOT_FOUND, null);
            return "???";
        }
    }
515590
public function addComment($issue_key, $params)
	{
		if ( is_string($params) ) {
			// If $params is scalar string value -> wrapping it properly.
			$params = array(
				'body' => $params,
			);
		}

		return $this->api(self::REQUEST_POST, sprintf('/rest/api/2/issue/%s/comment', $issue_key), $params);
	}
121776
private function parseFeature($issue)
    {
        $body = $this->getFeature($issue);
        $url = $this->jiraService->getUrl($issue->key) . '#';
        $feature = $this->gherkinParser->parse($body, $url);

        if (isset($issue->assignee)) {
            $feature->addTag('assignee:' . str_replace(array(' ', '@'), '_', $issue->assignee));
        }

        if (isset($issue->fixVersions)) {
            foreach ($issue->fixVersions as $fixVersion) {
               $feature->addTag('fixVersion:' . str_replace(array(' ', '@'), '_', $fixVersion->name));
            }
        }

        return $feature;
    }
1216652
public function deleteComment($issue, $commentId)
    {
        $path = "/issue/{$issue}/comment/{$commentId}";

        try {
            $this->client->callDelete($path);
        } catch (Exception $e) {
            throw new JiraException("Failed to delete comment", $e);
        }
    }
1296954
protected boolean reportCompilationIssues(Iterable<Issue> issues) {
		boolean hasError = false;
		for (final Issue issue : issues) {
			final String issueMessage = createIssueMessage(issue);
			switch (issue.getSeverity()) {
			case ERROR:
				hasError = true;
				getLogger().error(issueMessage);
				break;
			case WARNING:
				getLogger().warn(issueMessage);
				break;
			case INFO:
				getLogger().info(issueMessage);
				break;
			case IGNORE:
			default:
				break;
			}
			notifiesIssueMessageListeners(issue, issue.getUriToProblem(), issueMessage);
		}
		return hasError;
	}
140807
public function getAll($appId, $scanId, $issueId, array $queryParams = [])
    {
        $response = $this->api
            ->applications()
            ->scans()
            ->issues()
            ->summaries()
            ->getAll($appId, $scanId, $issueId, $queryParams);

        return new SummariesResponse($response);
    }
1083072
def get(issue_id, issue_type_id):
        
        return db.Issue.find_one(
            Issue.issue_id == issue_id,
            Issue.issue_type_id == issue_type_id
        )