Hello,
I'm wondering if its possible to create more than 100 issues through post functions. I know that Jira 'paginates' queries to only return 100 issues at a time, so I'm trying to figure out how to keep calling the next 100 issues. The 'startAt' variable didn't do what it does when performing automations through Python, it instead only starts value in the first 100. Here's what I've got now:
{% for i in range(1,(("project = X and issuetype = Task order by updated desc")|searchIssues(maxResults =100, startAt=0) | length)) %}
{{i}},
{% endfor %}
What I want to do is keep calling the next 100 issues according to that query :).
Any help appreciated, I could do this through Python but would prefer to keep it instant on transition and within Jira :).
Actually, the limit of "searchIssues" is now 1000, not 100. However, you won't be able to create 1000 issues in a single Create Issue(s) post-function because you'll reach the execution time limit (5 minutes) of that post-function.
Nice, the update to searchIssues addresses that first problem.
Is there any way to override that timeout? Or should we split the post function?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, the timeout cannot be extended. The solution is to split the issue creation into multiple issues.
And you should be able to use the startAt parameter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.