Forums

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

I want to be able to search for all issue types that their name starts with certain words

Jessi Alva June 27, 2018

I'm trying to perform a query that gives me all the issue types that their name starts with "pho" for example. I tried this query: issueFunction in issueFieldMatch("project= Auth Core", "Name", "^NUI.*") and it doesn't' work

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 28, 2018

Jira's JQL is designed to return issues, not issuetypes.   That said, if you're looking for issuetypes to be returned, you could tweak this scriptrunner JQL issueMatchField function to return all the Jira  issues that match the query.

To find issues types, you would not use the field called "Name".  Instead you would use either "IssueType" or "Type", so instead I think your JQL would look like this:

issueFunction in issueFieldMatch("project=ABC", "IssueType", "\\bNUI.*") 

This would return all issues whose issuetype contains the starting string "NUI".

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events