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

Poor performing creation of Issues call JIRA API

When I call the JIRA API in groovy code triggered by choosing a menu item, the code creates about 20 Issues then within each issue it creates another 5 Issues.

The process takes a LONG TIME! A little over a minute.  So, two questions?

(1) Is it likely, the reason for slow performance on the back end is it will process 100= 5 x 20 database calls?  If not, whats your best guess?

(2) Is there a way to do this same call more efficiently and complete in seconds rather than minutes?  
Perhaps, a way to batch requests?  Skip the JIRA API and write to the DB directly?  What can be done?

1 answer

0 votes

To write to a Jira database with SQL, you have to

  • know exactly what you are doing (and almost everyone fails that test)
  • Have Jira shut down, and usually run a full re-index after restarting it

So, no, you don't want to do that.

The speed is probably simply a function of the complexity of what you're trying to do.  The server process is going as fast as it can without compromising other users.

Suggest an answer

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

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

334 views 1 3
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