Last active
July 25, 2018 02:56
-
-
Save epk/276cd918efa09b332dea9e7fc256ca6d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type Payload struct { | |
| ID string `json:"Id"` | |
| Title string `json:"title"` | |
| Type string `json:"type"` | |
| Fields Fields `json:"fields"` | |
| } | |
| type Fields struct { | |
| FixVersion []FixVersion `json:"fixVersions"` | |
| } | |
| type FixVersion struct { | |
| Self string `json:"self"` | |
| ID string `json:"id"` | |
| Name string `json:"name"` | |
| Archived bool `json:"archived"` | |
| Released bool `json:"released"` | |
| ProjectID int `json:"projectId"` | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| newPayload := &Payload{ | |
| ID: issue.ID, | |
| Title: issue.Key, | |
| Type: "object", | |
| Fields: Fields{ | |
| []FixVersion{ | |
| FixVersion{ | |
| Self: v.Self, | |
| ID: v.ID, | |
| Name: v.Name, | |
| Archived: v.Archived, | |
| Released: v.Released, | |
| ProjectID: v.ProjectID, | |
| }, | |
| }, | |
| }, | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment