mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-02-07 13:31:38 +02:00
use agile api for getting issue
This commit is contained in:
parent
9f1498acb6
commit
ce5e0c2cf2
3
issue.go
3
issue.go
@ -127,6 +127,7 @@ type IssueFields struct {
|
|||||||
Subtasks []*Subtasks `json:"subtasks,omitempty" structs:"subtasks,omitempty"`
|
Subtasks []*Subtasks `json:"subtasks,omitempty" structs:"subtasks,omitempty"`
|
||||||
Attachments []*Attachment `json:"attachment,omitempty" structs:"attachment,omitempty"`
|
Attachments []*Attachment `json:"attachment,omitempty" structs:"attachment,omitempty"`
|
||||||
Epic *Epic `json:"epic,omitempty" structs:"epic,omitempty"`
|
Epic *Epic `json:"epic,omitempty" structs:"epic,omitempty"`
|
||||||
|
Sprint *Sprint `json:"sprint,omitempty" struct:"sprint,omitempty"`
|
||||||
Parent *Parent `json:"parent,omitempty" structs:"parent,omitempty"`
|
Parent *Parent `json:"parent,omitempty" structs:"parent,omitempty"`
|
||||||
Unknowns tcontainer.MarshalMap
|
Unknowns tcontainer.MarshalMap
|
||||||
}
|
}
|
||||||
@ -479,7 +480,7 @@ type CustomFields map[string]string
|
|||||||
//
|
//
|
||||||
// JIRA API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/issue-getIssue
|
// JIRA API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/issue-getIssue
|
||||||
func (s *IssueService) Get(issueID string, options *GetQueryOptions) (*Issue, *Response, error) {
|
func (s *IssueService) Get(issueID string, options *GetQueryOptions) (*Issue, *Response, error) {
|
||||||
apiEndpoint := fmt.Sprintf("rest/api/2/issue/%s", issueID)
|
apiEndpoint := fmt.Sprintf("rest/agile/1.0/issue/%s", issueID)
|
||||||
req, err := s.client.NewRequest("GET", apiEndpoint, nil)
|
req, err := s.client.NewRequest("GET", apiEndpoint, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user