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
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".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.