I'm creating an automation that uses the LookupIssues field. I use the data from the lookupIssue field and push it all into in an "edit comment on issue" block.
Right now, I'm seeing results of 100 tickets at time. Is there a way to limit these to 10 results?
LookupIssues component may return a maximum of 100 issues (https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Automationactions-Lookupissues). Since the {{lookupIssues}} smart value is considered to be a list, you can use any of the list methods found here https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/
Limiting is going to be tricky. The .get(index) method would give you the first item from the list.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Aqib.Shirwani good to know that!
Glad to be of help! Kindly mark my answer as accepted in order to help others in the community with the same question. Much appreciated! :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Alex Koxaras _Relational_ , I have the opposite problem, I need list more of 100 result, Is possible increase this limit o use other method?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Aaron P. not any that I'm aware of. You have to narrow down your search
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for you response Alex.
But what a disappointment :(
As you well pointed out is possible create a limit, but that this variable have a limit so low is totally irrational.
I hope that Atlassian increase this limit or remove completally.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello everyone,
Just to comment that opening a case in atlassian to extend this limit, they have told me that at the moment they have no intention of doing so, but that this incident exists: https://jira.atlassian.com/browse/JSDCLOUD-11414
If the necessary votes are added they will implement it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are a couple of things to help with this, but unfortunately they cannot be used together: {{index}} for a list and smart value, list filtering.
The work-around is to call lookup issues twice, and filter the list the second time:
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's a nice workaround @Bill Sheboy ! I've tried to insert a list as a smart variable and split it in order to get its size, and then pass the individual items within the {{lookupIssues.get(index)}} smart value, but unfortunately it doesn't work like this. Even with the solution I provided, a lookupissue of 100 results takes about 10 secs. And if @Aqib.Shirwani is running all the time this rule, then he will hit the service limits in no time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Interesting...I tested mine on a large project, and it took 5-7 seconds for a both calls to lookup issues: the first is 100 issues and the second is 10.
Slight detour from this question: At this time, created variables do not preserve object typing...but...Lookup Tables do. I experimented with this and found a lookup issues result could be stored in a lookup table, entry value, and de-referenced later as lists, issue fields, etc. You may want to try that for your earlier use case/scenario.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
About my instance and the 100 lookupissues:
I'm on a standard plan, and I don't know if the performance is lower than that of another plan e.g. premium. I support not, but you never know!
Concerning the lookup table, I'll try to experiment with that! Thanx for the info!
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.