I want get status of my jira card using jira-api with card ID but it returns status 400

Divya mishra May 27, 2021

Hi, want to know the status of Jira card using Jira-Api with card ID in node.js,
authentication is done but status is 400 or Bad Request.
Here I am providing my raw code screenshot which I used from the Jira-API documentation.

code_error.PNGstatus_code.PNG

1 answer

0 votes
Warren
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 28, 2021

Hi @Divya mishra 

I don't know what the value of your variable jiraId is, but that may be the problem. Could you show what it is.

Is this the first API call that you've tried? Or have you had other calls working, but this now isn't?

Try a different API call to see if that works e.g. a simple one without any parameters is

/rest/api/3/search

Divya mishra May 28, 2021

Thank you for your reply,
but this variable is not a problem and before this, I have created Card with attachment using API and it's working very well.

Suggest an answer

Log in or Sign up to answer