Hi,
i try to change the IssueType Scheme of project with Rest API PUT.
for this i've Project ID and IssueType Scheme ID (or i think it is...)
for getting Project ID :
curl -u USER:PASSWORD -X GET -H "Content-Type: application/json" "https://MYDOMAIN/rest/api/2/project/" | jq '.[]|select(.key | endswith("LAST_CHAR_OF_PROJECT_NAME"))' | jq '.id'
i get "26700". Ok
for getting IssueType Scheme ID :
curl -u USER:PASSWORD -X GET -H "Content-Type: application/json" "https://MYDOMAIN/rest/api/2/issuetypescheme/" | jq '.schemes[]|select(.name | contains("ISSUE_TYPE_SCHEME_NAME"))' | jq '.id'
i get "62600". Ok
Now has it's say in issuetypescheme-project-put
i send this :
curl --user USER:PASSWORD -X PUT -H 'Accept: application/json' -H 'Content-Type: application/json' 'https://MYDOMAIN/rest/api/2/issuetypescheme/project' --data '{
"issueTypeSchemeId": "62600",
"projectId": "26700"
}'
and i get this error :
{"errorMessages":["Unrecognized field \"issueTypeSchemeId\" (Class com.atlassian.jira.issue.fields.rest.json.beans.IssueTypeSchemeCreateUpdateBean), not marked as ignorable\n at [Source: org.apache.catalina.connector.CoyoteInputStream@5554acbf; line: 2, column: 25] (through reference chain: com.atlassian.jira.issue.fields.rest.json.beans.IssueTypeSchemeCreateUpdateBean[\"issueTypeSchemeId\"])"]}
Please, does anyone has an idea ?
regards.