You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
we have a custom-field containing several domains: CompanyDomains
lets assume they are named like;
"domainA - websiteX"; domainB - websiteY"; "domainC - websiteZ"
I want to exclude all websites related to "domainC" in the results.
CompanyDomains !~ "DomainC*" => but does not work
So wanted to say like exclude all domains starting with DomainC
"DOES NOT CONTAIN: !~" is not working because its only used for text searches (IF I understand the documentation correct) - see https://support.atlassian.com/jira-service-management-cloud/docs/advanced-search-reference-jql-operators/#Advancedsearchingoperatorsreference-DOES
any suggestions ?
As you're on Jira Cloud, the correct answer is to get an app that provides JQL extensions you're looking for.
With standard JQL, you can only get a list of issues and export them to Excel for further processing. This works if you want to do a one-off analysis. If your use case is more dynamic than that, look beyond standard Jira.
Standard JQL doesn't easily allow it, but you can quickly find the results using our professional indexing service JQL Search Extensions
After you install the app, you can use this query:
issue in wildcardMatch("CompanyDomains", "domainC*")
And then, you save it, in “Save the query as a filter”.
For example, you put the name of the filter as ”WithoutDomainC”
After this, you access the Advanced issue Search, in Jira and use this query:
filter != "WithoutDomainC"
Check out the documentation for more examples.
I hope this helps!
maybe another approach:
There are more conditions we are checking so we have several IF / ELSE blocks:
However if I put the condition on top the approval will be skipped even when a website from DomainC and any website from DomainA or DomainB is selected.
CompanyDomains IN (DomainC - WebsiteA, DomainC - Website B ....)
So I am struggling for the correct JQL for ONLY those websites :/
websites of DomainC = no approval
websites of DomainA & B requires approval
only websites from DomainC are selected => no approval
websites selected from DomainC & DomainA/B => approval
only Websites from DomainA/B => approval
not sure if you can follow - meanwhile spent to much time on this topic and maybe can´t explain myself anymore correctly ^^
For select list field you should use "not in" operator and list all values that you want exclude.
Please check this doc - https://jirasupport.files.wordpress.com/2019/07/atlassian-jql-cheat-sheet-2.pdf
hi thanks - totally forgot about this cheat sheet - thanks
problem here: I would need to select plenty of domains manually - which is very sad - are you aware of any solution using wildcards ?
so I guess my problem is more related to the wildcards for the select-list field
most documentation I found relates to text-fields