Hello,
I am facing issue while creating issue in jira using rest api this is the json I am posting to Jira.
i.e
{"fields":{"project":{"key":"JIRA"},"summary":"Test Assignee","description":"Test Assignee","environment":"Windows_10,Google_Chrome_50","priority":{"id":"2"},"issuetype":{"name":"Bug"},"assignee":{"name":"abc.username"}}}
Issue is created successfully in jira but the assignee is showing me "Unassigned".
Could you please update If i am missing something wrong.?
@Dev Geek Use 'id' in place of 'name' for assignee. As GDPR is kicking in for API's name is now not acceptable. Your input will look like this
{"fields": ... ,"assignee":{"id":"<ID_FROM_USERS_PROFILE_PAGE>"}}}
Hello. Is there a way to find this Id, of a specific name, programmatically? In order to send it with the json.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Dev Geek ,
please look at this thread. Could it be also your case?
Please, is it possible to get error message from the response? It could help us diagnose the problem.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not getting any error issue is successfully created and I got a jira issue ID in response i.e
[*responseBody] => {"id":"10247","key":"JIRA-138","self":"https://abc.atlassian.net/rest/api/2/issue/10247"}
This is what I am getting in response but the Assignee key is not updating.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.