I am working on automating the code review process in my team.
My objectives are:
- When a review is created, assign it to two random developers
- Automatically update the JIRA item, and assign them to the developers who were assigned as reviewers in Upsource
I was able to achieve objective #1 using Upsource Custom Workflows.
For the second objective, I have tried looking at Upsource Webhooks and JIRA Cloud REST API, but I fail to see how to assign a JIRA item from Upsource. JIRA's API specifies that in order to assign an item using REST, we need to create PUT request to this method:
PUT /rest/api/2/issue/{issueIdOrKey}/assignee
- How can I create a PUT request from Upsource Webhooks?
- How can I extract the {issueIDOrKey} from the originating Upsource review?