을 선택JIRA 나머지 API를 내가 JQL 아래 문제를 질의에 대한 JIRA REST API를 사용하고 최소한의 자원
jql=project =SLUB and "Agile Team" in ("Iris (B2C)")&fieldsByKeys=true&fields=status&maxResults=1
나는 단지의 상태 이름을 대신 가져올 수있는 방법
{
"expand": "names,schema",
"startAt": 0,
"maxResults": 1,
"total": 1172,
"issues": [
{
"expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields",
"id": "35988",
"self": "https://xyz.atlassian.net/rest/api/2/issue/35988",
"key": "SLUB-7071",
"fields": {
"status": {
"self": "https://xyz.atlassian.net/rest/api/2/status/10200",
"description": "",
"iconUrl": "https://xyz.atlassian.net/",
"name": "To Do",
"id": "10200",
"statusCategory": {
"self": "https://xyz.atlassian.net/rest/api/2/statuscategory/2",
"id": 2,
"key": "new",
"colorName": "blue-gray",
"name": "To Do"
}
}
}
}
]
}
으로 API 반응을 얻고있다 완전한 상태 자원. 제발 제안 해주세요.
답장을 보내 주셔서 감사합니다. JIRA 지원 팀으로부터이 대답을 얻었습니다. " 상태 이름 만 반환하는 것은 불가능합니다. 응답에서 제공하는 제안은 특정 JSON 태그를 가져 오는 것이 아니라 필드를 검색하는 것입니다. 이미 field 매개 변수를 사용하여 상태 필드 만 반환했습니다 세부 사항은 있지만 더 얇아진 상태의 이름 만 얻는 것은 가능하지 않습니다. " – rahulb