How do I pull a Jira Ticket from API call?

Good Evening,

I am having trouble doing a get request to pull a specific ticket using the Jira API.

Does anyone know what call i need to use to pull one Jira Ticket?

I thank you in advance.

Best regards J.

Hi, @james.rolon.

Are you working on which deployment, server or cloud? Assuming you are working with a cloud instance, given the issue ID or key you can use the Get issue REST endpoint.

Cheers,
Ian

https://{{instanceHostname}}/rest/api/2/issue/{{issueId}}

You can make this call directly from your browser after your sign in. It will be authenticated with your session cookies. However, when you’re making this call programmatically, you’ll need an authorization token (i.e. HTTP basic auth, OAuth, etc.)

Here’s an example from a public Jira project (no auth required):

https://jira.atlassian.com/rest/api/2/issue/CONFCLOUD-57248