mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-04-21 12:07:01 +02:00
Merge pull request #16 from tritonrc/issuelink-omit
When creating issue links, the id and self should be omitted.
This commit is contained in:
commit
6b49178e1f
10
issue.go
10
issue.go
@ -228,19 +228,19 @@ type Subtasks struct {
|
|||||||
|
|
||||||
// IssueLink represents a link between two issues in JIRA.
|
// IssueLink represents a link between two issues in JIRA.
|
||||||
type IssueLink struct {
|
type IssueLink struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id,omitempty"`
|
||||||
Self string `json:"self"`
|
Self string `json:"self,omitempty"`
|
||||||
Type IssueLinkType `json:"type"`
|
Type IssueLinkType `json:"type"`
|
||||||
OutwardIssue *Issue `json:"outwardIssue"`
|
OutwardIssue *Issue `json:"outwardIssue"`
|
||||||
InwardIssue *Issue `json:"inwardIssue"`
|
InwardIssue *Issue `json:"inwardIssue"`
|
||||||
Comment *Comment `json:"comment"`
|
Comment *Comment `json:"comment,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// IssueLinkType represents a type of a link between to issues in JIRA.
|
// IssueLinkType represents a type of a link between to issues in JIRA.
|
||||||
// Typical issue link types are "Related to", "Duplicate", "Is blocked by", etc.
|
// Typical issue link types are "Related to", "Duplicate", "Is blocked by", etc.
|
||||||
type IssueLinkType struct {
|
type IssueLinkType struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id,omitempty"`
|
||||||
Self string `json:"self"`
|
Self string `json:"self,omitempty"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Inward string `json:"inward"`
|
Inward string `json:"inward"`
|
||||||
Outward string `json:"outward"`
|
Outward string `json:"outward"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user