Unverified Commit d85a1530 authored by Sander van Harmelen's avatar Sander van Harmelen Committed by GitHub

Merge pull request #545 from jorcau/fix-jira-service

Update service jira: fix JiraIssueTransitionID type from string to int
parents 859bdd9e 14423f46
...@@ -393,7 +393,7 @@ type JiraServiceProperties struct { ...@@ -393,7 +393,7 @@ type JiraServiceProperties struct {
ProjectKey *string `url:"project_key,omitempty" json:"project_key,omitempty" ` ProjectKey *string `url:"project_key,omitempty" json:"project_key,omitempty" `
Username *string `url:"username,omitempty" json:"username,omitempty" ` Username *string `url:"username,omitempty" json:"username,omitempty" `
Password *string `url:"password,omitempty" json:"password,omitempty" ` Password *string `url:"password,omitempty" json:"password,omitempty" `
JiraIssueTransitionID *string `url:"jira_issue_transition_id,omitempty" json:"jira_issue_transition_id,omitempty"` JiraIssueTransitionID *int `url:"jira_issue_transition_id,omitempty" json:"jira_issue_transition_id,omitempty"`
} }
// GetJiraService gets Jira service settings for a project. // GetJiraService gets Jira service settings for a project.
......
...@@ -141,7 +141,7 @@ func TestSetJiraService(t *testing.T) { ...@@ -141,7 +141,7 @@ func TestSetJiraService(t *testing.T) {
ProjectKey: String("as"), ProjectKey: String("as"),
Username: String("aas"), Username: String("aas"),
Password: String("asd"), Password: String("asd"),
JiraIssueTransitionID: String("asd"), JiraIssueTransitionID: Int(2),
} }
_, err := client.Services.SetJiraService(1, opt) _, err := client.Services.SetJiraService(1, opt)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment