I am seeing an error when trying to create issue via REST API:
POST request to /rest/api/2/issue returned an error code: status: 400 - Bad Request
body: {"errorMessages":[],"errors":{"project":"project is required"}}
With this request:
post("/rest/api/2/issue")
.header("Content-Type", "application/json")
.body([
fields: [
summary: newIssue.fields.summary,
customfield_10008: issue.key,
assignee: [
key: newIssue.fields.assignee.key,
name: newIssue.fields.assignee.name]
],
cutomfield_10201: newIssue.fields.customfield_10201,
description: newIssue.fields.description,
project:[
key: issue.fields.project.key]
]
)
.asString()
This exact same format for a POST including the project key works perfectly in a different POST that creates an Epic. This one is for a story but that shouldn't change anything. Not sure if this is a bug or what.