Forums

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

Getting duplicate issues in the List

Bhoopesh Kumar March 15, 2023

Hi Team, 

 

I am fetching issues list from the startAt=0 and maxResults=100 by the API in python below mentioned complete URL.

"https://<host>/rest/api/2/search?jql=project=<project_number> Order by key&startAt=0&maxResults=100"

but getting duplicates issues on different pages(startAt=1 etc.) Also I have tried different combination in order by like "updated" or "created" etc. but getting same result.

Here "key" is Ticket No.

Please help me on it.

Thanks in advance.

 

Regards,

Bhoopesh Sisoudiya

 

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 15, 2023

Welcome to the Atlassian Community!

My guess is that your "Ticket No" is a custom field, and people have created issues with duplicate values.

The "key" in your query means "the unique key of an issue".  Jira will not give you more than one of any issue in the results.

Bhoopesh Kumar March 16, 2023

Hi Nic Brough Thanks for the reply.


Yes, "key" means in my query "unique key of an issue". Also I have tried "created" or "updated" key/column but getting same problem. 

Any other suggestions?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 16, 2023

Could you show us a sample of your output?

Bhoopesh Kumar March 20, 2023

Hi Nic Brough Thanks for the reply.

I have figured out it was a bug in our code.

Thanks for the cooperation.

Suggest an answer

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

Atlassian Community Events