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 delete packages and issues in bulk via REST API i see can only select 50 each time in JIRA UI

Hi,

 

Would like to know how to delete packages, users,workflows and issues in bulk via REST API i see can only select 50 each time in JIRA UI

1 answer

0 votes

Hi @sunil 

 

For issues you can change the value of the maxresults in your API's call.

Here the information that you can get in the doc

The "maxResults" parameter indicates how many results to return per page. Each API may have a different limit for number of items returned.

Here an example of a code, using Jira Python module (i just use a loop and play with the startAt parameter)

size = 100initial = 0

while True:

start= initial*size
issues
= j.search_issues('project = "your project"', start,size)
if len(issues) == 0:
break
initial
+= 1
for issue in issues: issue.delete()

 

By default the maxresult you can get is 1000 ins jira software, so you can override this limitation in your code, if you want so you will need to change the value in your instance.

Hope this helps

Thanks for the information,

 

could you please let me know path to change the value of maxresult on Jira instance

Hi @Mohamed Benziane 

Thanks for the information,

 

could you please let me know path to change the value of maxresult on Jira instance and also provide the option the export configurations like custom fileds and issues with all linked issues and attachments as we are doing migration of data from one instance to another instance in different network

General we do attch the attachment like https://1.1.1.1:8443/Simple.html

where our Jira instance dont have connectivity with 1.1.1.1:8443 .

Need to download all attachment with same name as mentioned in issue

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

The add-in you’ve been waiting for: Jira Cloud for Excel 🙌

Introducing Jira Cloud for Excel Here at the product integrations team at Atlassian, we are thrilled to announce the new Jira Cloud for Excel add-in! This add-in lets you export Jira data directly ...

840 views 5 22
Read article

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