Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira Api - Get only Issue-ID from get filter

Antonio D'Errico
Contributor
March 7, 2019 edited

Hello,

i want to get the results of a filter over the api and save the results in a textfile.

when i executed the api call i get several information but i only need the issue-id.

 

curl \

   -u xxx:xxx \

   -X GET \

   -H "Content-Type: application/json" \

   http://localhost:8080/rest/api/2/search?jql=type%20%3D%20Bug%20and%20resolution%20is%20empty

 

how can i do this? i'm new with handling the api of jira

 

best

toni

1 answer

Antonio D'Errico
Contributor
March 7, 2019

ok thanks but that is still too much info.

 

{"expand":"names,schema","startAt":0,"maxResults":50,"total":1,"issues":[{"expand":"operations,versionedRepresentations,editmeta,changelog,renderedFields","id":"10402","self":"https://tsjira.novatec.net/rest/api/2/issue/10402","key":"TEST-4"}]}

 

i only need the issue-id (here TEST-4)

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!

Help us plant more trees
AUG Leaders

Atlassian Community Events