You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi community members,
When I send the below API call,
https://company.url/jira/rest/api/2/user/assignable/search?project={{projectkey}}
I get an error
{"errorMessages":["No project with the provided key exists"],"errors":{}}
Please advise where the problem source could be. The vendor - which supplies the third party JIRA app integration from the ticketing system - believes it is on the JIRA side and JIRA admins think it could be on the vendor side.
Additional info:
1. JIRA hosted on an in-company server though named company.cloud; no atlassian.net domain URL, no vanity URL etc.,
2. Basic Authentication with username/password.
3. Whitelisting of all IPs done.
Your thoughts and ideas are really welcome.
PR
Hi @PR ,
Did you check your project key at /rest/api/2/project?
And try this in web browser (e.g. Firefox), it's easier to read this way.
Best,
Michael
Hi Michael,
Yes, when I use the jira/rest/api/2/project, the project key does appear. it is only when I use /api/2/user/assignable/search?project={{projectkey}} that the error occurs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the purpose of the "/jira" or the "/user/assignable/" within your search URL?
To search for something, it's just plain "/rest/api/2/search", as in:
https://{company.url}/rest/api/2/search?project={projectkey}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi David,
The third party tool, Freshdesk, uses this REST API call to populate the field called Assignee in their widget for JIRA integration. The problem is that we are not able to assign to any users or JIRA developers from this dropdown list on the JIRA widget.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here's how to test if the URL is valid:
Here's a test URL you can use on Atlassian's public Jira instance, as a proof of the method.
This works:
https://jira.atlassian.com/rest/api/2/search?project=BAM
This does not work:
https://jira.atlassian.com/rest/api/2/user/assignable/search?project=BAM
But there is no error. I probably have no rights to get that information.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, I have been using the browser only to test out the URLs. I do get a json response file with the URL you have indicated, but get the error message while using the
rest/api/2/user/assignable/search?project=WBB
string in the URL. The third party vendor insists that this URL has to return a response and there is nothing they can do on their side. I am grappling to understand what it is that needs fixing on JIRA side, as I too believe that the tool has to change but they do not think so. I need more info to justify which URL that they should use to look for a list of assignable users against a project.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, that might be as far as I can help. When I do test against Atlassian's own Jira, it works.
If I try the following:
https://jira.atlassian.com/rest/api/2/user/assignable/search
I get the expected error "No project or issue key was provided".
If I try with an invalid project key BATTY, like this;
https://jira.atlassian.com/rest/api/2/user/assignable/search?project=BATTY
I get the expected response "No project with the provided key exists"
If I try with a valid project key BAM, like this:
https://jira.atlassian.com/rest/api/2/user/assignable/search?project=BAM
I get no error, but I get no results either. This is probably because Atlassian won't let me return a list of their users, which makes sense as the REST API documentation says "This resource cannot be accessed anonymously"
When I try the following query against my own Jira Cloud instance, it works fine too:
https://{private}.atlassian.net/rest/api/2/user/assignable/search?project=BPT
This returns a list of assignable users for the project with the key BPT.
If I provide an invalid project key BATTY, I get the error "No project with the provided key exists" as expected.
So, if the error the tool is getting is "No project with the provided key exists" then the fault is with the tool's REST API call, as it contains an invalid project key.
If there is no error, but no results returned, the fault is still with the tool, as it's not properly authenticated to lookup the list of users.
Anything else, then I'd say you might have a bug due to the type of Jira you're using (IE Jira SERVER vs Jira CLOUD) or the version of Jira. I'd suggest you raise a bug ticket with Atlassian to have it investigated a bit further.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you David for all the details and research. Appreciate your help. I will check with the vendor and Atlassian, per your suggestion, to identify a solution for my issue.
Priya
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.