我想显示问题的名称,密钥,创建日期,解决日期和团队。我怎样才能做到这一点?
我在index.php中创建了JQL。
require 'vendor/autoload.php';
use JiraRestApi\Issue\IssueService;
$jql = 'project in (MGBUGS) AND resolved >= startOfWeek("-6") AND resolved <= endOfWeek("-5") AND "MaGIC Team" = Tech';
try {
$issueService = new IssueService();
$ret = $issueService->search($jql);
var_dump($ret);
} catch (JiraException $e) {
$this->assertTrue(false, 'testSearch Failed : '.$e->getMessage());
}
?>
答案 0 :(得分:0)
这取决于您的issueService.search方法的实现方式。
假设它使用POST /api/2/search REST资源,那么您可以在请求正文中指定您感兴趣的字段。然后,您的结果将包含这些字段。
示例正文:
{
"jql": "project = HSP",
"startAt": 0,
"maxResults": 15,
"fields": [
"summary",
"status",
"assignee"
],
"fieldsByKeys": false
}