Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do i get a issue current status via API

Cesar Bastos October 31, 2022

I need to get a issue current status via api, i'm using the endpoint 

"https://paketa.atlassian.net/rest/api/3/search" and a just need to know the current status. To get a issue key i'm using this response to a var issueKey = JSON.parse(response).issues[i].key

I'm trying something like var status = JSON.parse(response)issues[i].status but it does not work

1 answer

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 31, 2022

Hello @Cesar Bastos 

Exactly how is it not working? What value or error message are you getting?

Have you tried dumping the JSON output to find if the Status field is included?

Cesar Bastos November 3, 2022

Hi @Trudy Claspill , it brings me a big response. I just need the status name, but when i tried to get this in JSON.parse(response).issues.status.name it returns me a null value alot.png

Cesar Bastos November 3, 2022

never mind, i just found the solution

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 3, 2022

Can you share the solution so that other community members can benefit from what you've learned?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events