Hi,
I'd like to create a SearchIssues query for multiple issue creation and haven't had any luck.
{{("project = XYZ and issuetype = 'Test Run' and cf[10500] = " + issue.key + " and subTasksCount > 0 and status != Obsolete and 'Test Run Type[Select List (cascading)]' = 'Design Validation'") | searchIssues(maxResults = 1) | field( "key") | issue | subtasks( "*all" )}}
I'm trying to get the first issue from the query, then return its subtasks so i can iterate through those. I get the error 'issue only available on an object'. The query works in isolation without the 'issue and subtasks' part. Any ideas?
@Ahmad Sidawi can you try the following and see if it works:
{{("project = XYZ and issuetype = 'Test Run' and cf[10500] = " + issue.key + " and subTasksCount > 0 and status != Obsolete and 'Test Run Type[Select List (cascading)]' = 'Design Validation'") | searchIssues(maxResults = 1) | field("key")|string|issue|subtasks}}
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.