Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Rest api not connecting


I am accessing url : https://hibu-us.atlassian.net/rest/api/2/search with api key.
Body: {"jql":"project = DIG","startAt":0,"maxResults":2,"fields":["id","key"]}
getting error
{
"errorMessages": [
"The value 'QA' does not exist for the field 'project'."
],
"warningMessages": []
}

Note: Able to access same in local Jirra running in Docker. Is any difference for clould jirra project :: value.
Jqul project value given as DIG, which is id of existing Hibu account project. But response is error.
Please help

1 comment

Try making the following request:

https://hibu-us.atlassian.net/rest/api/2/search?jql=project=DIG

Did it return a list of all the issues in the project with the key DIG?

Same Error:400 Bad Request

GET: https://hibu-us.atlassian.net/rest/api/2/search?jql=project=DIG

Auth: API Key

{    "errorMessages": [        "The value 'DIG' does not exist for the field 'project'."    ],    "warningMessages": []}

Then the connection is working just fine, but, from Jira's perspective, there is no project with the key 'DIG', so it's just responding by saying "You're asking for something that I can't find" or your authentication is wrong and Jira is saying "You're not authenticated properly, so I'm not going to tell you if there is a project with that key"

Open a web browser and log into Jira at hibu-us.atlassian.net and open the project and double-check what the key is. Then, open a new tab in the same browser and try the REST query URL again (The browser will have a cached session authentication key so you won't need to authenticate). If the error still happens, you have something else very strange happening.

While hitting url in Browser got response with all cards details. [with logged in session]

URL: https://hibu-us.atlassian.net/rest/api/2/search?jql=project=DIG

{"expand":"schema,names","startAt":0,"maxResults":50,"total":15759,"issues":...................

Below URL 

https://hibu-us.atlassian.net/rest/api/2/search

Returned:

{"expand":"schema,names","startAt":0,"maxResults":50,"total":120453,"issues":.............

Excellent. So the connection works, your credentials work, there is a project with the key DIG and it contains 15,759 issues. Everything is working as expected.

So, your problem with the initial error means whatever method you're using to authenticate with whatever tool / script you're using isn't working. Jira is just telling you "You haven't authenticated properly, so I'm not going to tell you if there is a project with the key DIG". Check how you're authenticating.

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Bitbucket Smart Commits vs. Genius Commits - What's the difference?

If you already heard about Smart Commits in Bitbucket, know that you just stumbled upon something even better (and smarter!): Genius Commits by Better DevOps Automation for Jira Data Center (+ Server...

114 views 0 2
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you