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
Hello @Antonio D_Errico
You have to use the fields parameter
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.