Hi everyone,
I have components A, B, C
I have tickets
I need a JQL excluding XYZ-2 by "has no other component assigned than B". The result set of that JQL shall be
The solution suggested by I want to do a JQL query with "all except for" doesn't help as the result set will be
XYZ-1 and XYZ-3 will not be provided
I don't want to do a query like "EMPTY or in (A, C)" as I don't want to extend the query whenever a new component gets defined
What suggestions do you have to solve this problem?
Hi @Ralf Fahney ,
I don’t think there’s a direct JQL solution for that.
But what you could consider is to create a custom number field ‘Number of Components’ and create an Automation Rule that triggers whenever the field Components changes and counts the component and sets the custom field to the result.
Once that is set and implemented you can query on Component = B and ‘Number of Components’ = 1
Hope that helps. Have a nice day! Rik
Hi @Ralf Fahney
Short answer: I do not believe that is possible with out-of-the-box JQL features.
JQL is not a SQL, and does not have some features that might help do this. And, there is no built-in list counting feature for fields like Components. For workarounds, they depend upon how often you need this type of query:
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Rik de Valk @Bill Sheboy Thanks for your suggestions. The query will be part of a Kanban board filter. We'll use it daily. You both suggested the counting approach. I'll try that
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.