Problem using GET request on "../assignee/search?" REST API in JIRA

Hello,

 

i'm trying to figure out which users i can assign to my issues that i want to create. Therefore i want to use the GET request "/rest/api/latest/user/assignable/search?key=NAGSWC" and want to store the responseText with the users in a string.

 

Unfortunately all i get using that command is

"missing parameter 'username' or 'key'" and i can not figure out where the problem is. When i'm posting my request directly into the URL i can see a json string and the users connected to the project.

 

I also tried substituting the "key" in "/rest/api/latest/user/assignable/search?key=NAGSWC with "projectKey", "project" and so on but nothing works.

 

The name of the projectkey itself is definitely right though, my other requests like POST do work.

 

Thanks in advance

1 answer

1 accepted

1 vote
Sam Hall Community Champion Apr 28, 2017

It should work if you give the 'project' parameter.

Here's a example using jira.atlassian.com:

https://jira.atlassian.com/rest/api/latest/user/assignable/search?project=SOMETHING

For me, this returns "No project with the provided key exists".

Hello Sam, i figured i used another syntax else where, and that caused the problem!

Thanks!

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 Hipchat

Moving from Hipchat to Stride? Here’s what you’ll love

Heya, Hipchat friends! We’re so happy you’re checking out   Stride. Whether you know it or not, you have been instrumental in making Stride come to life. Every feature, design, and functionality...

59 views 2 6
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