The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Poor performing creation of Issues call JIRA API

MarkoRocko
September 3, 2019

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
September 16, 2019

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.