1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-01-24 03:16:18 +02:00

Merge pull request #15 from joushou/master

Expose issue link direction, comment ID
This commit is contained in:
Andy Grunwald 2016-06-08 08:05:14 +02:00
commit 7a597749c2
2 changed files with 7 additions and 6 deletions

View File

@ -231,9 +231,9 @@ type IssueLink struct {
ID string `json:"id"`
Self string `json:"self"`
Type IssueLinkType `json:"type"`
OutwardIssue Issue `json:"outwardIssue"`
InwardIssue Issue `json:"inwardIssue"`
Comment Comment `json:"comment"`
OutwardIssue *Issue `json:"outwardIssue"`
InwardIssue *Issue `json:"inwardIssue"`
Comment *Comment `json:"comment"`
}
// IssueLinkType represents a type of a link between to issues in JIRA.
@ -248,6 +248,7 @@ type IssueLinkType struct {
// Comment represents a comment by a person to an issue in JIRA.
type Comment struct {
ID string `json:"id,omitempty"`
Self string `json:"self,omitempty"`
Name string `json:"name,omitempty"`
Author User `json:"author,omitempty"`

View File

@ -94,13 +94,13 @@ func TestIssueAddLink(t *testing.T) {
Type: IssueLinkType{
Name: "Duplicate",
},
InwardIssue: Issue{
InwardIssue: &Issue{
Key: "HSP-1",
},
OutwardIssue: Issue{
OutwardIssue: &Issue{
Key: "MKY-1",
},
Comment: Comment{
Comment: &Comment{
Body: "Linked related issue!",
Visibility: CommentVisibility{
Type: "group",