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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to get all issueKeys in a jira project by rest api?

I have a jira projectKey,and I want to get all issueKeys by rest api.

1 answer

1 accepted

0 votes
Answer accepted
Daniel Wong Community Leader Jan 12, 2021

Hi Ronaldo,

I'm going to quote an answer (with a bit of updates to direct at this question) from a previous answerer as that person has given a very good description and brief guide on how to use Jira's REST API:

  1.  Get the total issues in a project with a basic and 'quick and light' query
    1. URL: https://<server>/rest/api/2/search?jql=project=<YourProjectKey>
    2. This gives a result like --> 
      { "startAt": 0,
        "maxResults": 50,
        "total": 24,
        "issues": [...] }
  2. Iterate over the total number of issues to fetch the desired details/fields of each issue.
    1. Note: Maximum allowable fetch seems to be 1000 issues at a time.
    2. We can also filter the fields that we are interested to fetch. Since you are only interested in key, we will filter fields shown to just key.
    3. search on URL: "https://<server>/rest/api/2/search?jql=project=<YourProjectKey>&fields=key"

I highly suggest reading the previous answerer's post as it will give you more context and has some other useful tips to handle projects with > 1000 issues - sayeed1310's answer

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,047 views 8 28
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you