Is it possible to assign an issue to a user with the REST API using the user's key?

Hi,
I am trying to assign an issue to a user with the REST api, but I only have the user's unique "key" available.
I know I can get the "name" from the "key" via the api, but it's for a big batch job so I am trying to avoid the extra api call.
I have been trying to use the "/rest/api/2/issue/{issueIdOrKey}/assignee" endpoint, but it only works when I send the "name".
If I send the "key" I still get "204 No Content", but the issue is not assigned to the user.
Since "key" is one of the properties in the schema, I am guessing that this may be a bug but I am not sure.
If I use the normal Edit Issue endpoint I get "Bad Request" if I send anything other than a "name"

Anyone know if this is possible, or am I forced to fetch the name from the API?

0 answers

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

63 views 0 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you