1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-12-13 23:25:52 +02:00

Add Transition API handling

Added TransitionService with 2 methods:
 * GetList for retrieving possible transitions for an issue
 * Create for creating transition and changing issue status in the
   process
This commit is contained in:
Maciej Kwiek
2016-06-20 17:14:55 +02:00
parent 6c73f2f575
commit 1fd364aea2
5 changed files with 255 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ type Client struct {
Issue *IssueService
Project *ProjectService
Board *BoardService
Transition *TransitionService
}
// NewClient returns a new JIRA API client.
@@ -55,6 +56,7 @@ func NewClient(httpClient *http.Client, baseURL string) (*Client, error) {
c.Issue = &IssueService{client: c}
c.Project = &ProjectService{client: c}
c.Board = &BoardService{client: c}
c.Transition = &TransitionService{client: c}
return c, nil
}