Forums

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

Multiple IDs in issue search

Sam Hall
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 14, 2023

I'm using the following query, is there a way to also include another ID. ie.. ticket and ticket1

issuekey = ticket OR "Parent Link" = ticket OR issueFunction in issuesInEpics("'Parent Link' = ticket") OR issueFunction in subtasksOf("issueFunction in issuesInEpics(\"'Parent Link' = ticket\")") ORDER BY issuetype ASC

1 answer

0 votes
Marc - Devoteam
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 Leaders.
September 14, 2023

Hi @Sam Hall 

Welcome to the community.

You can use the JQL keyword IN 

Like; issuekey in (ticket-1, ticket-2)

Is this what you are looking for?

Sam Hall
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 14, 2023

Ohhh, thanks Marc - me being new, apologies!

issuekey IN (MH-10134, mh-10299) OR "Parent Link" IN (MH-10134,MH-10299) OR issueFunction in issuesInEpics("'Parent Link' IN (MH-10133,MH-10299")) OR issueFunction in subtasksOf("issueFunction in issuesInEpics(\"'Parent Link' IN MH-10134, mh-10299\") ORDER BY issuetype ASC

I get an error of "Error in the JQL Query: Expecting either 'OR' or 'AND' but got ')'. (line 1, character 146)" - can you calrify?

Suggest an answer

Log in or Sign up to answer