Hello. I have Server Jira v7.11.2. I use API v.2.
So, I want to change assignee to another user. How can I do that?
1. I haven't possibility to use URL like https://site.ru/rest/api/latest/issue/{ISSUE_KEY}/assignee. I see 405 error.
2. I tried an example
curl -D- -u fred:fred -X PUT --data {see below} -H "Content-Type: application/json" https://site.ru/rest/api/2/issue/{ISSUE_KEY}{"fields": {"assignee":{"name":"harry"}}}
but it doesn't work.
Hello,
What is the response text returned by your curl call?
Nothing. The Empty result.
I tried this urlcurl -D- -u username:pass -X PUT --data {\"fields\": {\"assignee\":{\"name\":\"newuser\"}}} -H "Content-Type: application/json" https://site.ru/rest/api/2/issue/{ISSUE_KEY}
and gave{"errorMessages":["Unexpected end-of-input within/between OBJECT entries\n at [Source: org.apache.catalina.connector.CoyoteInputStream@6aa8f474; line: 1, column: 21]"]}
You use rest api for Jira Server. Are you on Jira Server or Jira Cloud?
REST API for jira server (jira hosts on my server)
It looks like you're new here. Sign in or register to get started.