Skip to content

Commit

Permalink
[MM-17816] Reporter is not automatically set for /jira create… (#462)
Browse files Browse the repository at this point in the history
* Add reporter key to CreateIssue URL

* Fix 500 error status on cloud instances
  • Loading branch information
AGMETEOR authored Feb 26, 2020
1 parent 4de6a53 commit 970e320
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,11 @@ func MakeCreateIssueURL(ji Instance, project *jira.Project, issue *jira.Issue) s
q.Add("summary", issue.Fields.Summary)
q.Add("description", issue.Fields.Description)

// Add reporter for only server instances
if ji.GetType() == JIRATypeServer {
q.Add("reporter", issue.Fields.Reporter.Name)
}

// if no priority, ID field does not exist
if issue.Fields.Priority != nil {
q.Add("priority", issue.Fields.Priority.ID)
Expand Down

0 comments on commit 970e320

Please sign in to comment.