We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Servicenow to Jira using custom action 400 error

krishnanara
Tera Contributor

I created a REST API in custom action to create a issue while testing the Rest step I'm getting 400 error. How to identify the valid project, I'm using Space in Jira.

resource path: /rest/api/3/issue
error:

krishnanara_0-1770333710377.png

 

request body:

krishnanara_1-1770333826110.png

 

krishnanara_2-1770333856704.png

 

9 REPLIES 9

Tanushree Maiti
Giga Sage

The "valid project required" error in a Jira REST API call typically means the project key or ID provided in your request payload is either incorrect, misspelled, or the user credentials used for authentication do not have the necessary permissions (Browse Projects and Create Issues) for that specific project. 

 

Please refer this links for correct request payload format, see if it helps you:

https://community.atlassian.com/forums/Jira-questions/Specify-a-valid-project-ID-or-key-when-trying-...

https://community.atlassian.com/forums/Jira-questions/quot-project-quot-quot-project-is-required-quo...

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

I can't able to figure out where I went wrong. Are you able to find any mistake in my payload?

Ankur Bawiskar
Tera Patron

@krishnanara 

are you sure you are using valid project ID?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

I don't have project id, could you help me how to find it? As I see only the space key 

krishnanara_0-1770372684572.png