Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to specify assignee in a task via API

Michail Yatsko
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 21, 2019

Hi all! I can't figure out how to update a task and assign an executor to it. I'm trying to do:

issue.update(assignee={'name': 'German Kopylov'}'),

but I get the response:

response text = {"errorMessages":[],"errors":{"assignee":"User 'German Kopylov' does not exist."}}.

At the same time, if I try to search for tasks and get her assignee, I get the answer:

GRM-310: XXXXXX : assignee: German Kopylov.

That is, such a name exists. What am I doing wrong?

1 answer

0 votes
DPKJ
Community Champion
August 21, 2019

@Michail Yatsko  'German Kopylov' seems to be a displayName try with his username, which will be something that he uses for login to jira.

Michail Yatsko
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 21, 2019

@DPKJ Yes, but what if the login is through google? Use email, like: {'name': 'xx@gmail.com'}? With it I tried and got the same result.

Zarad Zarad
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 22, 2019

@DPKJ And if I go to the site through google account? Then you need to specify the mail? I tried and it didn't work.

DPKJ
Community Champion
August 22, 2019

I am not sure about google account, we stopped using it.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events