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:
commit
7a597749c2
7
issue.go
7
issue.go
@ -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"`
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user