We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. 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

Please refer this links to find out project ID, see if it helps you:

https://community.atlassian.com/forums/Welcome-Center-discussions/How-can-i-find-the-project-id-of-m...

https://www.youtube.com/watch?v=4qH_16YxWjw

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

@krishnanara 

for that you need to check with JIRA team or login to JIRA on your own and find one

Then test it from ServiceNow

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

I come to know Project is renamed as space in Jira from 2025. but I see this error when I give the request payload

"project": {
      "key""SCRUM"
    }

You do not have permission to create issues in this project.
 

yashkamde
Mega Sage

Hello @krishnanara ,

Try using this response body :

{
  "fields": {
    "project": {
      "key": "SCRUM"
    },
    "summary": "Test",
    "description": {
      "type": "doc",
      "version": 1,
      "content": [
        {
          "type": "paragraph",
          "content": [
            {
              "type": "text",
              "text": "Order entry fails when selecting supplier"
            }
          ]
        }
      ]
    },
    "issuetype": {
      "name": "Task"
    }
  }
}
 
 
If my response helped mark as helpful and accept the solution

   I'm getting this error. but I see in the project I have administrator access
     
"You do not have permission to create issues in this project."