mirror of
				https://github.com/interviewstreet/go-jira.git
				synced 2025-10-30 23:47:46 +02:00 
			
		
		
		
	When creating issue links, the id and self should be omitted along with comment if none is provided
This commit is contained in:
		
							
								
								
									
										10
									
								
								issue.go
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								issue.go
									
									
									
									
									
								
							| @@ -228,19 +228,19 @@ type Subtasks struct { | ||||
|  | ||||
| // IssueLink represents a link between two issues in JIRA. | ||||
| type IssueLink struct { | ||||
| 	ID           string        `json:"id"` | ||||
| 	Self         string        `json:"self"` | ||||
| 	ID           string        `json:"id,omitempty"` | ||||
| 	Self         string        `json:"self,omitempty"` | ||||
| 	Type         IssueLinkType `json:"type"` | ||||
| 	OutwardIssue *Issue        `json:"outwardIssue"` | ||||
| 	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. | ||||
| // Typical issue link types are "Related to", "Duplicate", "Is blocked by", etc. | ||||
| type IssueLinkType struct { | ||||
| 	ID      string `json:"id"` | ||||
| 	Self    string `json:"self"` | ||||
| 	ID      string `json:"id,omitempty"` | ||||
| 	Self    string `json:"self,omitempty"` | ||||
| 	Name    string `json:"name"` | ||||
| 	Inward  string `json:"inward"` | ||||
| 	Outward string `json:"outward"` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user