We've defined a Link Type called "contains <-> belongs to" so that we could build an issue hierarchy where Initiatives "contain" Features, and Features "belong to" Initiatives. I want to query for all Features that don't belong to an Initiative. What I would like to write is something like:
type = Feature AND (issueLinkType != "belongs to" OR issueLink is EMPTY)
but that's not valid JQL.
Any thoughts? What am I missing? Is there a Marketplace app that will support these semantics (not necessarily this syntax)? Thanks for any ideas you can offer.
Community moderators have prevented the ability to post new answers.
Hi Kelly,
Try this: type = Feature AND (issueLinkType != "belongs to" OR issueLinkType is empty)
Doh! Thanks John.
Interestingly, the documentation says the IS operator is not supported for issueLinkType. That'll teach me to believe the docs :-(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For server and datacenter it really is not supported. That is why i used '=' in my reply.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good one! Thanks again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kelly Arrey
First of all you should always get an error that says what you are doing wrong.
Out of the top of my head i would think the query you are looking for is
type = Feature AND (issueLinkType != "belongs to" OR issueLinkType = EMPTY)
Regards
Dave
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Dave.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Update: The reason I couldn't get this work is because of JRACLOUD-73640.
Fortunately, there is a workaround:
Then, the filter I was originally trying to write can be expressed as:
type = Feature AND (filter != "has belongs to link" OR issueLink is EMPTY)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.