How can I get (via GET) all JIRA issues? Go to Search node?

It looks like / api / 2 / project easily returns all projects in a JIRA instance in JSON format.

I would like to do the same for problems, but that doesn't seem to exist.

Is / api / 2 / the usual way to do bulk reset? And what is the best way to regularly update this database? Would I be able to do something like search (update date> [last entry in database]) and then go through the pagination? Of course, I may not be the first person to try this, although I don't see any such guide anywhere on the Internet (I checked Jira's own docs, no bulk release guide).

EDIT: Ok, it looks like the search is indeed a "problem dump" and not a node problem, which, contrary to their documentation, is not a collection by default, but really to create problems or list one at a time. I will probably follow the route of the updated> [whatever is the latest date in the DB]

+3


source to share


1 answer


If you have very few problems, you cannot take them straight away. What you can do is follow it step by step.

For example, let's say you have 1324 JIRA questions. To extract all of them, you have to do a search like this multiple times:

/rest/api/2/search?&maxResults=100&startAt=0

      

This will restore the first 100 JIRA questions starting at 0. How do I get others?



When performing a search, a field named is returned total

. This field is the number of common JIRA issues on your system (1324 questions).

The next request will look like this:

/rest/api/2/search?&maxResults=100&startAt=100

      

Repeat this operation, increasing the value startAt

by 100 each time until all problems are returned.

+2


source







All Articles