We have a PowerShell script to generate JIRA issue. It works every time we create single issue only.
Then we add a for loop to generate several issues at a time. But the script will be hang after the first or second loop.
Because it just hang, no error at all. Do you have idea why is that? Is JIRA have some threshold to prevent calling its API too frequency?
Hello,
There is no such limit. Try to use the POST /rest/api/2/issue/bulk. This Rest call will let you add multiple issues. You can find more info here:
https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/issue-createIssues
It's difficult to say anything without having a look at the PS script, the for loop and the response from Jira.
I believe your for loop is incorrect.
Is JIRA have some threshold to prevent calling its API too frequency?
Not really, the requests to REST endpoints are queued. Any reasonable frequency should not be an issue. We had no issues with 1000 request per minute (nginx+tomcat+jira). You can alway add a delay in your for loop to eliminate this issue, but I doubt it will help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.