This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to filter on set relation in sync criteria?

I want to set sync criteria in a way to only synchronize elements that are linked to one or more other elments.

In this specific example, I would limit the synchronization of TestPlans (out of MF ALM) to only those TestPlans with the Testtype "Functional" which are related to one or more Defects.

So I build the following Sync Critera:

As there is no "exists" operator for Sync Criteria, I had to use "Not IsEmpty" but everything else should be straightforward.

However, I get an Exception for each Test that has no linked Defect:

Why does an "IsEmpty" operator return an Exception when something is empty?

What is a working way to filter Elements in SyncCriteria on the existence of related elements?

Parents
  • 0

    >>What is a working way to filter Elements in SyncCriteria on the existence of related elements?

    I'm not ever certain this works, but I'd try isNull in preference to isEmpty, see where that takes you.

    >>I want to set sync criteria in a way to only synchronize elements that are linked to one or more other elments.

    This topic is far too complex to do justice on a community forum thread.

    I recommend raising an incident, Ed, Dave &/or I will have a meeting with you on a discussion of sync criteria.

    If you haven;t done so, I also recommend you upgrade to version 4.4.3, which as released to Connect MarketPlace a week ago.

    4.4.3 is a compendium of defect fixes on top of 4.4.2, which itself was a compendium of defect fixes atop 4.4.1.

    Take care

    anil

Reply
  • 0

    >>What is a working way to filter Elements in SyncCriteria on the existence of related elements?

    I'm not ever certain this works, but I'd try isNull in preference to isEmpty, see where that takes you.

    >>I want to set sync criteria in a way to only synchronize elements that are linked to one or more other elments.

    This topic is far too complex to do justice on a community forum thread.

    I recommend raising an incident, Ed, Dave &/or I will have a meeting with you on a discussion of sync criteria.

    If you haven;t done so, I also recommend you upgrade to version 4.4.3, which as released to Connect MarketPlace a week ago.

    4.4.3 is a compendium of defect fixes on top of 4.4.2, which itself was a compendium of defect fixes atop 4.4.1.

    Take care

    anil

Children
  • 0 in reply to 

    Dear Anil,

    up to my knowledge, there is no "IsNull"-Operator for SyncCriteria, available are only:  .

    Also there is no "isNull" mentioned in the documentation: Filter and query data (microfocus.com)

    So what exactly are you refering to?

    Also I fail to see, why this a to complex for the community. In most programming languages and tools the checking for Null-Elements is done with one single statement. And as this is an aspect relevant for a lot of usecases, it should definitely be documented here.

    Regarding 4.4.3: We upgraded today but I still found no way to implement this criteria. 

    And yes, we will raise an incident and schedule a meeting with you as soon as possible. But I would prefer to solve as many topics in advance as possible, to avoid having to discuss to many different things at once.