JIRA API with CURL throws error {"errorMessages":["The value 'XXX' does not exist for the field 'project'."],"errors":{}}

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

There is an issue with REST API using CURL

  • When running the REST URL using the browser , the JSON response is OK
  • When running the REST URL using CURL with PHP, user receives the following error : 
 
{"errorMessages":["The value 'XXX' does not exist for the field 'project'."],"errors":{}}

Cause

A session needs to be created. 

Resolution

Create a session as per Security overview and use the JSESSIONID in the request header.

Last modified on Oct 4, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.