jira-node / node-jira-client

A Node.js wrapper for the Jira REST API
https://jira-node.github.io/
MIT License
449 stars 168 forks source link

Please add get issuetype by issue id #327

Open kristianmandrup opened 2 years ago

kristianmandrup commented 2 years ago

https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issue-types/#api-rest-api-2-issuetype-id-get

GET /rest/api/2/issuetype/{id}

Response

{
  "self": "https://your-domain.atlassian.net/rest/api/2/issueType/3",
  "id": "3",
  "description": "A task that needs to be done.",
  "iconUrl": "https://your-domain.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10299&avatarType=issuetype\",",
  "name": "Task", 
  "subtask": false,
  "avatarId": 1,
  "hierarchyLevel": 0
}

The name field contains the type name of the issue, here Task